Computes residuals as the difference between observed values and fitted
values. For type = "response", returns Y - fitted(object).
For type = "pearson", returns response residuals scaled by the
standard deviation implied by the family (e.g., sqrt(p*(1-p)) for
binary).
# S3 method for ame
residuals(object, type = c("response", "pearson"), ...)An n x n matrix (unipartite) or nA x nB matrix (bipartite) of
residuals. Entries where the original data was NA remain NA.
Fitted AME model object (class "ame").
Character; "response" (default) for raw residuals or
"pearson" for standardized residuals.
Additional arguments (not used).
Cassy Dorff, Shahryar Minhas, Tosin Salau
fitted.ame, predict.ame