residuals() returns the residuals specified in type from a "chantrics" object.

# S3 method for chantrics
residuals(object, type = c("response", "working", "pearson"), ...)

Arguments

object

an object of class "chantrics", returned by adj_loglik().

type

the type of residuals which should be returned. The alternatives are: "response" (default), "working", and "pearson" (for glm fits).

...

further arguments passed to or from other methods

Value

A vector of residuals.

Details

The different types of residuals are as in stats::residuals.glm().

References

A. C. Davison and E. J. Snell, Residuals and diagnostics. In: Statistical Theory and Modelling. In Honour of Sir David Cox, FRS, 1991. Eds. Hinkley, D. V., Reid, N. and Snell, E. J., Chapman & Hall.

M. Döring, Interpreting Generalised Linear Models. In: Data Science Blog, 2018. https://www.datascienceblog.net/post/machine-learning/interpreting_generalized_linear_models/

See also