cox.resid | R Documentation |
Plots martingale residuals of a Cox model against fitted values, to check for log-linearity of covariates.
cox.resid(model)
model |
a |
Maxime HERVE <maxime.herve@univ-rennes1.fr>, based on an idea of John Fox.
Fox, J. 2002 Cox Proportional-Hazards Regression for Survival Data.
coxph
# 'kidney' dataset of package 'survival'
require(survival)
data(kidney)
model <- coxph(Surv(time,status)~age+factor(sex),data=kidney)
cox.resid(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.