
Extract predicted survival probabilities from a coxph object
predictProb.coxph.RdExtracts predicted survival probabilities for survival models fitted by Cox proportional hazards model, providing an interface as required by pmpec.
Usage
# S3 method for class 'coxph'
predictProb(object, response, x, times, ...)Arguments
- object
a fitted model of class
coxph.- response
survival object (with
Surv(time, status), where time is ann-vector of censored survival times and status ann-vector containing survival status, coded with 0 and 1.- x
n*pmatrix of covariates.- times
vector of evaluation time points.
- ...
additional arguments, currently not used.