Residuals for `Glm`

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

Arguments

object

a fit object produced by `Glm`

type

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

...

ignored

Value

a vector or matrix

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`.

Author

Frank Harrell