Derives total treatment duration (days) (TRTDURD
)
Arguments
- dataset
Input dataset
The columns specified by the
start_date
and theend_date
parameter are expected.- start_date
The start date
A date or date-time object is expected.
Refer to
derive_vars_dt()
to impute and derive a date from a date character vector to a date object.Default:
TRTSDT
- end_date
The end date
A date or date-time object is expected.
Refer to
derive_vars_dt()
to impute and derive a date from a date character vector to a date object.Default:
TRTEDT
Details
The total treatment duration is derived as the number of days from start to end date plus one.
See also
Date/Time Derivation Functions that returns variable appended to dataset:
derive_vars_dtm_to_dt()
,
derive_vars_dtm_to_tm()
,
derive_vars_dtm()
,
derive_vars_dt()
,
derive_vars_duration()
,
derive_vars_dy()