Learn R Programming

msme (version 0.5.3)

residuals.msme: Function to produce residuals from a model of class msme.

Description

Function to produce deviance and standardized deviance residuals from a model of class msme.

Usage

# S3 method for msme
residuals(object, type = c("deviance", "standard"), ...)

Value

A vector of residuals.

Arguments

object

a model of class msme.

type

the type of residual requested. Defaults to deviance.

...

arguments to pass on. Retained for compatibility with generic method.

Author

Andrew Robinson and Joe Hilbe.

Details

Presently only deviance or standardized deviance residuals are computed.

References

Hilbe, J.M., and Robinson, A.P. 2013. Methods of Statistical Model Estimation. Chapman & Hall / CRC.

Examples

Run this code
data(medpar)

ml.poi <- ml_glm(los ~ hmo + white,
                 family = "poisson",
                 link = "log",
                 data = medpar)

str(residuals(ml.poi))

Run the code above in your browser using DataLab