residuals.mcglm: Residuals for mcglm Objects

View source: R/mc_S3_methods.R

residuals.mcglmR Documentation

Residuals for mcglm Objects

Description

Computes residuals for a fitted mcglm object. Different types of residuals can be extracted, depending on the specified argument type.

Usage

## S3 method for class 'mcglm'
residuals(object, type = c("raw", "pearson", "standardized"), ...)

Arguments

object

An object of class mcglm.

type

A character string specifying the type of residuals to be returned. Options are:

"raw"

Raw residuals, defined as observed minus fitted values.

"pearson"

Pearson residuals, scaled by the marginal standard deviation.

"standardized"

Standardized residuals, obtained using the inverse covariance matrix.

...

Further arguments passed to or from other methods. Currently ignored.

Value

A numeric matrix of class Matrix with dimensions n \times r, where n is the number of observations and r is the number of response variables.

Author(s)

Wagner Hugo Bonat, wbonat@ufpr.br

See Also

residuals, fitted.mcglm


mcglm documentation built on Jan. 9, 2026, 1:07 a.m.