SurvivalDiagnostics {RcmdrPlugin.survival} | R Documentation |
Diagnostics for Survival Regression Models
Description
These are primarily convenience functions for the RcmdrPlugin.survival package, to produce diagnostics for coxph
and survreg
models in a convenient form for plotting via the package's GUI.
Usage
crPlots(model, ...)
## S3 method for class 'coxph'
crPlots(model, ...)
## S3 method for class 'coxph'
dfbeta(model, ...)
## S3 method for class 'dfbeta.coxph'
plot(x, ...)
## S3 method for class 'coxph'
dfbetas(model, ...)
## S3 method for class 'dfbetas.coxph'
plot(x, ...)
## S3 method for class 'survreg'
dfbeta(model, ...)
## S3 method for class 'dfbeta.survreg'
plot(x, ...)
## S3 method for class 'survreg'
dfbetas(model, ...)
## S3 method for class 'dfbetas.survreg'
plot(x, ...)
MartingalePlots(model, ...)
## S3 method for class 'coxph'
MartingalePlots(model, ...)
testPropHazards(model, test.terms = FALSE, plot.terms = FALSE, ...)
## S3 method for class 'coxph'
testPropHazards(model, test.terms = FALSE, plot.terms = FALSE, ...)
Arguments
model , x |
a Cox regression or parametric survival regression model, as appropriate. |
test.terms |
test proportional hazards by terms in the Cox model, rather than by coefficients (default is |
plot.terms |
diagnostic plots of proportional hazards by terms in the Cox model, rather than by coefficients (default is |
... |
arguments to be passed down. |
Details
-
crPlots.coxph
is a method for thecrPlots
function in the car package, to create component+residual (partial-residual) plots, usingresiduals.coxph
andpredict.coxph
in the survival package. -
testPropHazards
is essentially a wrapper for thecox.zph
function in the survival package. -
MartingalePlots
creates null-model Martingale plots for Cox regression models, using theresiduals.coxph
function in the survival package. -
dfbeta.coxph
anddfbetas.coxph
provide methods for the standarddfbeta
anddfbetas
functions, using theresiduals.coxph
function in the survival package for computation.plot.dfbeta.coxph
andplot.dfbetas.coxph
are plot methods for the objects produced by these functions. -
dfbeta.survreg
,dfbetas.survreg
,plot.dfbeta.survreg
andplot.dfbetas.survreg
are similar methods forsurvreg
objects.
Value
Most of these function create graphs and don't return useful values; the dfbeta
and dfbetas
methods create matrices of dfbeta and dfbetas values.
Author(s)
John Fox <jfox@mcmaster.ca>
References
John Fox, Marilia Sa Carvalho (2012). The RcmdrPlugin.survival Package: Extending the R Commander Interface to Survival Analysis. Journal of Statistical Software, 49(7), 1-32. doi:10.18637/jss.v049.i07.
See Also
coxph
, survreg
, crPlots
, residuals.coxph
, residuals.survreg
, predict.coxph
, cox.zph