Returns residuals from an ame_als or
lame_als fit.
# S3 method for ame_als
residuals(object, type = c("response", "working"), ...)A matrix (cross-sectional) or list of matrices (longitudinal).
an ame_als object.
"response" (default) or "working".
ignored.
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).