Learn R Programming

lame (version 1.3.4)

residuals.ame_als: Residuals from a fast AME fit

Description

Returns residuals from an ame_als or lame_als fit.

Usage

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

Value

A matrix (cross-sectional) or list of matrices (longitudinal).

Arguments

object

an ame_als object.

type

"response" (default) or "working".

...

ignored.

Details

type = "response" (default) returns observed Y minus the response-scale fitted values, so residuals() reconciles with fitted(). type = "working" returns the Gaussian working-scale residuals the estimator actually minimised (identical to "response" for the normal family).