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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcode.r
\name{plot.rs.zph}
\alias{plot.rs.zph}
\title{Graphical Inspection of Proportional Hazards Assumption in Relative Survival
Models}
\usage{
\method{plot}{rs.zph}(
x,
resid = TRUE,
df = 4,
nsmo = 40,
var,
cex = 1,
add = FALSE,
col = 1,
lty = 1,
xlab,
ylab,
xscale = 1,
...
)
}
\arguments{
\item{x}{result of the \code{rs.zph} function.}
\item{resid}{a logical value, if \code{TRUE} the residuals are included on
the plot, as well as the smooth fit.}
\item{df}{the degrees of freedom for the fitted natural spline, \code{df=2}
leads to a linear fit.}
\item{nsmo}{number of points used to plot the fitted spline.}
\item{var}{the set of variables for which plots are desired. By default,
plots are produced in turn for each variable of a model. Selection of a
single variable allows other features to be added to the plot, e.g., a
horizontal line at zero or a main title.}
\item{cex}{a numerical value giving the amount by which plotting text and
symbols should be scaled relative to the default.}
\item{add}{logical, if \code{TRUE} the plot is added to an existing plot}
\item{col}{a specification for the default plotting color.}
\item{lty}{the line type.}
\item{xlab}{x axis label.}
\item{ylab}{y axis label.}
\item{xscale}{units for x axis, default is 1, i.e. days.}
\item{...}{Additional arguments passed to the \code{plot} function.}
}
\description{
Displays a graph of the scaled partial residuals, along with a smooth curve.
}
\examples{
data(slopop)
data(rdata)
fit <- rsadd(Surv(time,cens)~sex+as.factor(agegr),rmap=list(age=age*365.241),
ratetable=slopop,data=rdata,int=5)
rszph <- rs.zph(fit)
plot(rszph)
}
\references{
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.
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, 2007.
}
\seealso{
\code{\link{rs.zph}}, \code{\link[survival:plot.cox.zph]{survival::plot.cox.zph}}
}
\keyword{survival}
|