cox.resid: Martingale residuals of a Cox model

cox.residR 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 coxph model.

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

coxph

Examples

# 'kidney' dataset of package 'survival'
require(survival)
data(kidney)
model <- coxph(Surv(time,status)~age+factor(sex),data=kidney)
cox.resid(model)

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.