Last chance! 50% off unlimited learning
Sale ends in
Calculates partial residuals for an additive relative survival model.
# S3 method for rsadd
residuals(object, type = "schoenfeld", ...)
A list of the following values is returned:
a matrix containing the residuals for each variable.
the variance for each residual
the sum of varr
.
the
derivative of each residual, to be used in rs.zph
function.
the sum of kvarr
.
an object inheriting from class rsadd
, representing a
fitted additive relative survival model. Typically this is the output from
the rsadd
function.
character string indicating the type of residual desired. Currently only Schoenfeld residuals are implemented.
other arguments.
Package. Pohar M., Stare J. (2006) "Relative survival analysis in R." Computer Methods and Programs in Biomedicine, 81: 272--278
Relative survival: Pohar, M., Stare, J. (2007) "Making relative survival analysis relatively easy." Computers in biology and medicine, 37: 1741--1749.
Goodness of fit: Stare J.,Pohar Perme M., Henderson R. (2005) "Goodness of fit of relative survival models." Statistics in Medicine, 24: 3911--3925.
rsadd
.
data(slopop)
data(rdata)
fit <- rsadd(Surv(time,cens)~sex,rmap=list(age=age*365.241),
ratetable=slopop,data=rdata,int=5)
sresid <- residuals.rsadd(fit)
Run the code above in your browser using DataLab