LSresids.mer: Calculating least squares residuals

Description Usage Arguments Author(s) References See Also

View source: R/LSresids.R

Description

This function calculates least squares (LS) residuals found by fitting separate LS regression models to each case. For examples see the documentation for HLMresid.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Default S3 method:
LSresids(object, ...)

## S3 method for class 'mer'
LSresids(object, level, sim = NULL, standardize = FALSE, ...)

## S3 method for class 'lmerMod'
LSresids(object, level, standardize = FALSE, ...)

## S3 method for class 'lme'
LSresids(object, level, standardize = FALSE, ...)

Arguments

object

an object of class mer or lmerMod.

...

do not use

level

which residuals should be extracted: 1 for case-level residuals or the name of a grouping factor (as defined in flist of the mer object) for between-group residuals.

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 TRUE the standardized level-1 residuals will also be returned (if level = 1); if "semi" then the semi-standardized level-1 residuals will be returned.

Author(s)

Adam Loy loyad01@gmail.com

References

Hilden-Minton, J. (1995) Multilevel diagnostics for mixed and hierarchical linear models. University of California Los Angeles.

See Also

HLMresid


HLMdiag documentation built on May 2, 2021, 9:06 a.m.