residuals for objects
inheriting from class survreg.# S3 method for survreg
residuals(object, type=c("response", "deviance","dfbeta","dfbetas",
"working","ldcase","ldresp","ldshape", "matrix"), rsigma=TRUE,
collapse=FALSE, weighted=FALSE, ...)survreg.
"response", "deviance",
"dfbeta", "dfbetas", "working", "ldcase", "lsresp",
"ldshape", and "matrix". See the LaTeX documentation
(survival/doc/survival.ps.gz) for more
detail.
ldcase), the response value (ldresp), and the shape.predict.survregfit <- survreg(Surv(time,status) ~x, aml)
rr <- residuals(fit, type='matrix')
Run the code above in your browser using DataLab