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)
set.seed(1234)
temp <- generate_cure_data(N = 100, J = 10, nTrue = 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.