Times relative to an event (typically dosing)
Value
A data.frame with columns for:
- event_number_before
The index of
time_eventthat is the last one beforetime_obsorNAif none are before.- event_number_after
The index of
time_eventthat is the first one aftertime_obsorNAif none are after.- time_before
The minimum time that the current
time_obsis before atime_event, 0 if at least onetime_obs == time_event.- time_after
The minimum time that the current
time_obsis after atime_event, 0 if at least onetime_obs == time_event.- time_after_first
The time after the first event (may be negative or positive).
time_after and time_before are calculated if they are at the same time as
a dose, they equal zero, and otherwise, they are calculated relative to the
dose number in the event_number_* columns.