cure_estimate: Estimate cured fraction

View source: R/cure_estimate.R

cure_estimateR 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)
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)

hdcuremodels documentation built on Aug. 8, 2025, 7:38 p.m.