survcurve | R Documentation |
This routine creates objects related to the baseline survival
curve and the survival curve of the uncured subjects in a mixture
cure model fitted with lpsmc
.
survcurve(
x,
type = c("baseline", "uncured"),
covarprofile = NULL,
cred.int = 0.95,
themetype = c("classic", "gray", "light", "dark"),
outlisted = FALSE
)
x |
An object of type |
type |
Either baseline or uncured. |
covarprofile |
The matrix of covariate profiles. |
cred.int |
The level for building the credible intervals. |
themetype |
The theme of the plot either "classic", "gray","light" or "dark". |
outlisted |
Should a list be produced as an output? |
Oswaldo Gressani oswaldo_gressani@hotmail.fr .
## Plot survival curves of uncured subjects for AGE=(30,50) and ER=1
rm(list=ls())
data("breastcancer")
formula <- Surv(tobs, delta) ~ inci(AGE + ER) + late(AGE + ER)
fitcancer <- lpsmc(formula = formula, data = breastcancer, K = 20)
profilematrix <- matrix(c(30, 1, 50, 1), nrow = 2, byrow = TRUE)
survcurve(fitcancer, type = "uncured", covarprofile = profilematrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.