Learn R Programming

MapGAM (version 1.3)

residuals.gamcox: Residuals of the gamcox Object

Description

This function provides residuals of a gamcox object produced by gamcox.

Usage

# S3 method for gamcox
residuals (object,...)

Arguments

object

a gamcox object.

...

.

Author

Lu Bai

Send bug reports to sbartell@uci.edu.

See Also

modgam gamcox, predict.gamcox.

Examples

Run this code
# \donttest{
data(CAdata)
fit <- gamcox(Surv(time,event)~lo(X,Y)+AGE+INS,data=CAdata, span = 0.2)
residuals(fit)
# }

Run the code above in your browser using DataLab