Learn R Programming

rms (version 6.9-0)

residuals.Glm: residuals.Glm

Description

Residuals for `Glm`

Usage

# S3 method for Glm
residuals(object, type, ...)

Value

a vector or matrix

Arguments

object

a fit object produced by `Glm`

type

either `'score'` or a `type` accepted by `residuals.glm`

...

ignored

Author

Frank Harrell

Details

This function mainly passes through to `residuals.glm` but for `type='score'` computes the matrix of score residuals using code modified from `sandwich::estfun.glm`.