ADTTE conventions: AVAL is the time and CNSR == 1 means censored.
Requires the survival package.
Usage
fig_km(
df,
ctx = fig_ctx(),
censor_marks = TRUE,
base_size = NULL,
config = NULL
)Arguments
- df
Analysis data (BDS).
- ctx
A
fig_ctx()list.- censor_marks
Mark censored observations?
- base_size
Font size;
NULLuses the configuration.- config
A
tlf_config();NULLresolves throughtlf_get_config().
See also
Other figure builders:
fig_boxplot(),
fig_edish(),
fig_forest(),
fig_lsmeans(),
fig_meanci(),
fig_shift(),
fig_spaghetti(),
fig_waterfall()
Examples
if (requireNamespace("survival", quietly = TRUE)) p <- fig_km(ex_adtte)