File: residuals.rsadd.Rd

package info (click to toggle)
r-cran-relsurv 2.3-2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 916 kB
  • sloc: ansic: 1,223; cpp: 138; makefile: 2
file content (53 lines) | stat: -rw-r--r-- 1,701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcode.r
\name{residuals.rsadd}
\alias{residuals.rsadd}
\title{Calculate Residuals for a "rsadd" Fit}
\usage{
\method{residuals}{rsadd}(object, type = "schoenfeld", ...)
}
\arguments{
\item{object}{an object inheriting from class \code{rsadd}, representing a
fitted additive relative survival model. Typically this is the output from
the \code{rsadd} function.}

\item{type}{character string indicating the type of residual desired.
Currently only Schoenfeld residuals are implemented.}

\item{...}{other arguments.}
}
\value{
A list of the following values is returned: \item{res}{a matrix
containing the residuals for each variable.} \item{varr}{the variance for
each residual} \item{varr1}{the sum of \code{varr}.} \item{kvarr}{the
derivative of each residual, to be used in \code{rs.zph} function.}
\item{kvarr1}{the sum of \code{kvarr}.}
}
\description{
Calculates partial residuals for an additive relative survival model.
}
\examples{

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)

}
\references{
Package. Pohar M., Stare J. (2006) "Relative survival analysis
in R." Computer Methods and Programs in Biomedicine, \bold{81}: 272--278

Relative survival: Pohar, M., Stare, J. (2007) "Making relative survival
analysis relatively easy." Computers in biology and medicine, \bold{37}:
1741--1749.

Goodness of fit: Stare J.,Pohar Perme M., Henderson R. (2005) "Goodness of
fit of relative survival models." Statistics in Medicine, \bold{24}:
3911--3925.
}
\seealso{
\code{\link{rsadd}}.
}
\keyword{survival}