Learn R Programming

hdcuremodels (version 0.0.6)

cure_estimate: Estimate cured fraction

Description

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

Usage

cure_estimate(object)

Value

estimated proportion of cured observations

Arguments

object

a survfit object.

See Also

survfit, sufficient_fu_test, nonzerocure_test

Examples

Run this code
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)

Run the code above in your browser using DataLab