Kaplan-Meier median time with 95% CI per arm. With two or more arms it
adds Cox hazard ratios versus the first arm and the log-rank p-value as
footnotes. ADaM ADTTE conventions apply: AVAL is the time and
CNSR == 1 means censored. Requires the survival package.
Arguments
- adx
A BDS dataset (
AVISIT, optionallyAVISITNandPARAMCD).- trt_var
Treatment variable (resolved with
tlf_resolve_trt()).- paramcd
Optional
PARAMCDfilter.- config
A
tlf_config();NULLresolves throughtlf_get_config().
See also
Other table builders:
tbl_ae(),
tbl_ae_severity(),
tbl_demographics(),
tbl_disposition(),
tbl_eff(),
tbl_listing(),
tbl_shift()
Examples
if (requireNamespace("survival", quietly = TRUE)) tbl_tte(ex_adtte)
#> <tlf_table> 3 row(s) x 4 column(s)
#> Statistic Drug 10 mg (N=20) Drug 20 mg (N=20) Placebo (N=20)
#> Subjects, n 20 20 20
#> Events, n (%) 7 (35.0%) 9 (45.0%) 13 (65.0%)
#> Median time (95% CI) NE (309.00, NE) 311.00 (118.00, NE) 291.00 (207.00, NE)
#> Note: Hazard ratio (95% CI), Drug 20 mg vs Drug 10 mg: 1.60 (0.60, 4.31)
#> Note: Hazard ratio (95% CI), Placebo vs Drug 10 mg: 1.89 (0.75, 4.74)
#> Note: Log-rank p-value: 0.387