View source: R/cure_estimate.R
cure_estimate | R Documentation |
Estimates the cured fraction using a Kaplan-Meier fitted object.
cure_estimate(object)
object |
a |
estimated proportion of cured observations
survfit
, sufficient_fu_test
,
nonzerocure_test
library(survival)
withr::local_seed(1234)
temp <- generate_cure_data(n = 100, j = 10, n_true = 10, a = 1.8)
training <- temp$training
km_fit <- survfit(Surv(Time, Censor) ~ 1, data = training)
cure_estimate(km_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.