The records_source
object is used to find extreme records of interest.
Arguments
- dataset_name
The name of the source dataset
The name refers to the dataset provided by the
source_datasets
argument ofderive_param_extreme_record()
.- filter
An unquoted condition for selecting the observations from
dataset
.- new_vars
Variables to add
The specified variables from the source datasets are added to the output dataset. Variables can be renamed by naming the element, i.e.,
new_vars = exprs(<new name> = <old name>)
.For example
new_vars = exprs(var1, var2)
adds variablesvar1
andvar2
from to the input dataset.And
new_vars = exprs(var1, new_var2 = old_var2)
takesvar1
andold_var2
from the source dataset and adds them to the input dataset renamingold_var2
tonew_var2
. Expressions can be used to create new variables (see for examplenew_vars
argument inderive_vars_merged()
).Permitted Values: list of expressions created by
exprs()
, e.g.,exprs(ADT, desc(AVAL))
See also
Source Objects:
basket_select()
,
censor_source()
,
death_event
,
event()
,
event_joined()
,
event_source()
,
flag_event()
,
query()
,
tte_source()