residuals.regrsurv {regr0} | R Documentation |
Calculates residuals for uncensored observations and quartiles and random numbers according to the conditional distribution of residuals for censored observations. See Details for an explanation.
## S3 method for class 'regrsurv' residuals(object, type = NULL, na.action=object, ...) ## S3 method for class 'regrcoxph' residuals(object, type = NULL, na.action=object, ...)
object |
an object inheriting from classes Survreg or coxph |
type |
type of residuals required; |
na.action |
a list with component |
... |
unused |
For censored observations, the conditional distribution of the survival
time, given the censoring, is used to calculate quantiles, see
condquant
matrix with class condquant
Werner A. Stahel, ETH Zurich
See http://stat.ethz.ch/~stahel/regression
require(survival) t.r <- regr(Surv(time,status)~x, data=aml, family="weibull") residuals(t.r)