## No stratification
visR::estimate_KM(data = adtte)
## Stratified Kaplan-Meier analysis by `TRTP`
visR::estimate_KM(data = adtte, strata = "TRTP")
## Stratified Kaplan-Meier analysis by `TRTP` and `SEX`
visR::estimate_KM(data = adtte, strata = c("TRTP", "SEX"))
## Stratification with one level
visR::estimate_KM(data = adtte, strata = "PARAMCD")
## Analysis on subset of adtte
visR::estimate_KM(data = adtte[adtte$SEX == "F", ])
## Modify the default analysis by using the ellipsis
visR::estimate_KM(
data = adtte, strata = NULL,
type = "kaplan-meier", conf.int = FALSE, timefix = TRUE
)
## Example working with non CDISC data
head(survival::veteran[c("time", "status", "trt")])
# Using non-CDSIC data
visR::estimate_KM(data = survival::veteran, formula = Surv(time, status) ~ trt)
Run the code above in your browser using DataLab