Survivor function for Objects of Class 'smoothSurvReg'
Survivor function for Objects of Class 'smoothSurvReg'
Compute survivor function at left and right endpoint based on the fitted model. The function is an adapted version of the survfit.smoothSurvReg function of the package smoothSurv.
cov: Vector or matrix with covariates values for which the survivor function is to be computed. It must be a matrix with as many columns as is the number of covariates (interactions included) or the vector of length equal to the number of covariates (interactions included). Intercept is not to be included in cov. If cov is missing a survivor curve for the value of a covariate vector equal to zero is calculated.
logscale.cov: Vector or matrix with covariate values for the expression of log-scale (if this depended on covariates). It can be omitted in the case that log-scale was common for all observations.
Returns
A data.frame with columns named S1 and S2 containing the value of survivor function at the left and right endpoints, respectively.