survcurve: Survival curves for the mixture cure model.

View source: R/survcurve.R

survcurveR Documentation

Survival curves for the mixture cure model.

Description

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.

Usage

survcurve(
  x,
  type = c("baseline", "uncured"),
  covarprofile = NULL,
  cred.int = 0.95,
  themetype = c("classic", "gray", "light", "dark"),
  outlisted = FALSE
)

Arguments

x

An object of type lpsmc.

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?

Author(s)

Oswaldo Gressani oswaldo_gressani@hotmail.fr .

Examples

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


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