The flag_event object is used to define events as input for the
derive_var_merged_ef_msrc() function.
Arguments
- dataset_name
-
Dataset name of the dataset to be used as input for the event. The name refers to the dataset specified for
source_datasetsinderive_var_merged_ef_msrc().- Permitted values
a dataset, i.e., a
data.frameor tibble- Default value
none
- condition
-
Condition
The condition is evaluated at the dataset referenced by
dataset_name. For all by groups where it evaluates asTRUEat least once the new variable is set to the true value (true_value).- Permitted values
an unquoted condition, e.g.,
AVISIT == "BASELINE"- Default value
NULL
- by_vars
-
Grouping variables
If specified, the dataset is grouped by the specified variables before the condition is evaluated. If named elements are used in
by_varslikeby_vars = exprs(USUBJID, EXLNKID = ECLNKID), the variables are renamed after the evaluation. If theby_varselement is not specified, the observations are grouped by the variables specified for theby_varsargument ofderive_var_merged_ef_msrc().- Permitted values
list of variables created by
exprs(), e.g.,exprs(USUBJID, VISIT)- Default value
NULL
See also
Source Objects:
basket_select(),
censor_source(),
death_event,
event(),
event_joined(),
event_source(),
query(),
records_source(),
tte_source()
