curefit: Estimated cure proportion from a lpsmc object.

View source: R/curefit.R

curefitR Documentation

Estimated cure proportion from a lpsmc object.

Description

Computes the estimated cure proportion based on a mixture cure model fit with lpsmc. Point estimates and approximate 90 intervals are shown.

Usage

curefit(x, covarprofile)

Arguments

x

A lpsmc object.

covarprofile

The covariate profile on which to compute the cure proportion.

Value

A table with the estimated cure proportion.

Author(s)

Oswaldo Gressani oswaldo_gressani@hotmail.fr .

Examples

### Application on breast cancer data
rm(list=ls())
data("breastcancer")
formula <- Surv(tobs, delta) ~ inci(AGE + ER) + late(AGE + ER)
fitcancer <- lpsmc(formula = formula, data = breastcancer, K = 20)
covarprofile <- matrix(c(1, 30, 1, 1, 40, 0), nrow = 2 , byrow = TRUE)
fitcure <- curefit(fitcancer, covarprofile)
fitcure$estimcure


oswaldogressani/mixcurelps documentation built on Oct. 30, 2024, 10:45 p.m.