anl <- tern::tern_ex_adtte |>
dplyr::mutate(EVENT = 1 - CNSR)
variables <- list(
time = "AVAL",
event = "EVENT",
arm = "ARM",
covariates = c("SEX", "AGE")
)
control <- tern::control_coxreg(
conf_level = 0.9,
ties = "efron"
)
fit <- tern::fit_coxreg_multivar(
data = anl,
variables = variables,
control = control
)
h_extract_coxreg_multivar(fit)
Run the code above in your browser using DataLab