Cox Predicted Survival
survfit.cph.RdThis is a slightly modified version of Therneau's survfit.coxph
function. The difference is that survfit.cph assumes that
x=TRUE,y=TRUE were specified to the fit. This assures that the
environment in effect at the time of the fit (e.g., automatic knot
estimation for spline functions) is the same one used for basing predictions.
Arguments
- formula
a fit object from
cphorcoxphseesurvfit.coxph- newdata,se.fit,conf.int,individual,type,vartype,conf.type,censor,id
see
survfit. IfindividualisTRUE, there must be exactly oneSurvobject innewdata. This object is used to specify time intervals for time-dependent covariate paths. To get predictions for multiple subjects with time-dependent covariates, specify a vectoridwhich specifies unique hypothetical subjects. The length ofidshould equal the number of rows innewdata.- ...
Not used