cure_estimate {hdcuremodels}R Documentation

Estimate cured fraction

Description

Estimates the cured fraction using a Kaplan-Meier fitted object.

Usage

cure_estimate(object)

Arguments

object

a survfit object.

Value

estimated proportion of cured observations

See Also

survfit, sufficient_fu_test, nonzerocure_test

Examples

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)

[Package hdcuremodels version 0.0.1 Index]