residuals.chantrics {chantrics}R Documentation

Residuals of chantrics model fits

Description

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

Usage

## S3 method for class '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

Details

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

Value

A vector of residuals.

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

adj_loglik() for model fitting, stats::residuals.glm(), and stats::residuals().


[Package chantrics version 1.0.0 Index]