curefit | R Documentation |
Computes the estimated cure proportion based on a mixture cure model fit
with lpsmc
. Point estimates and approximate 90
intervals are shown.
curefit(x, covarprofile)
x |
A lpsmc object. |
covarprofile |
The covariate profile on which to compute the cure proportion. |
A table with the estimated cure proportion.
Oswaldo Gressani oswaldo_gressani@hotmail.fr .
### 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.