Skip to contents

Returns residuals from an ame_als or lame_als fit.

Usage

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

Arguments

object

an ame_als object.

type

"response" (default) or "working".

...

ignored.

Value

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

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).