Learn R Programming

smcure (version 2.1)

smsurv: Estimation of the baseline survival

Description

This R-program uses the Breslow method to estimate baseline survival of PH mixture cure model and AFT mixture cure model.

Usage

smsurv(Time, Status, X, beta, w, model)

Arguments

Time

this is the follow up time for "ph" model. If model is "aft", then this is residual.

Status

The status indicator, normally 0=alive, 1=dead

X

effects of covariates of uncured patients

beta

initial beta from coxph

w

conditional probability of the ith individual remains uncured at the mth iteration. We use Status as initial value

model

specifies your model, it can be "ph" or "aft"