Description Usage Arguments Value Author(s) See Also Examples
View source: R/derive_param_tte.R
The tte_source
object is used to define events and possible censorings.
1 | tte_source(dataset_name, filter = NULL, date, censor = 0, set_values_to = NULL)
|
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 providing the date of the event or censoring. A date, a datetime, or a character variable containing ISO 8601 dates can be specified. An unquoted symbol is expected. |
censor |
Censoring value CDISC strongly recommends using |
set_values_to |
A named list returned by |
An object of class tte_source
Stefan Bundfuss
derive_param_tte()
, censor_source()
, event_source()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Death event
admiral:::tte_source(
dataset_name = "adsl",
filter = DTHFL == "Y",
date = DTHDT,
censor = 0,
set_values_to = vars(
EVNTDESC = "DEATH",
SRCDOM = "ADSL",
SRCVAR = "DTHDT"
)
)
# Last study date known alive censor
admiral:::tte_source(
dataset_name = "adsl",
date = LSTALVDT,
censor = 1,
set_values_to = vars(
EVNTDESC = "ALIVE",
SRCDOM = "ADSL",
SRCVAR = "LSTALVDT"
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.