This function calculates least squares (LS) residuals
found by fitting separate LS regression models to each case.
For examples see the documentation for HLMresid
.
# S3 method for default LSresids(object, ...) # S3 method for mer LSresids(object, level, sim = NULL, standardize = FALSE, ...) # S3 method for lmerMod LSresids(object, level, standardize = FALSE, ...) # S3 method for lme LSresids(object, level, standardize = FALSE, ...)
object | an object of class |
---|---|
... | do not use |
level | which residuals should be extracted: 1 for case-level
residuals or the name of a grouping factor (as defined in |
sim | optional argument giving the data frame used for LS residuals. This is used mainly when dealing with simulations. Removed in version 0.3.2. |
standardize | if |
Hilden-Minton, J. (1995) Multilevel diagnostics for mixed and hierarchical linear models. University of California Los Angeles.
Adam Loy loyad01@gmail.com