cox.resid {RVAideMemoire} | R Documentation |
Martingale residuals of a Cox model
Description
Plots martingale residuals of a Cox model against fitted values, to check for log-linearity of covariates.
Usage
cox.resid(model)
Arguments
model |
a |
Author(s)
Maxime HERVE <maxime.herve@univ-rennes1.fr>, based on an idea of John Fox.
References
Fox, J. 2002 Cox Proportional-Hazards Regression for Survival Data.
See Also
Examples
# 'kidney' dataset of package 'survival'
require(survival)
data(kidney)
model <- coxph(Surv(time,status)~age+factor(sex),data=kidney)
cox.resid(model)
[Package RVAideMemoire version 0.9-83-7 Index]