| event_source {admiral} | R Documentation |
Create an event_source Object
Description
event_source objects are used to define events as input for the
derive_param_tte() function.
Note: This is a wrapper function for the more generic tte_source().
Usage
event_source(dataset_name, filter = NULL, date, set_values_to = NULL)
Arguments
dataset_name |
The name of the source dataset The name refers to the dataset provided by the |
filter |
An unquoted condition for selecting the observations from
|
date |
A variable or expression providing the date of the event or censoring. A date, or a datetime can be specified. An unquoted symbol or expression is expected. Refer to |
set_values_to |
A named list returned by |
Value
An object of class event_source, inheriting from class tte_source
See Also
derive_param_tte(), censor_source()
Source Objects:
basket_select(),
censor_source(),
death_event,
event(),
event_joined(),
flag_event(),
query(),
records_source(),
tte_source()
Examples
# Death event
event_source(
dataset_name = "adsl",
filter = DTHFL == "Y",
date = DTHDT,
set_values_to = exprs(
EVNTDESC = "DEATH",
SRCDOM = "ADSL",
SRCVAR = "DTHDT"
)
)