rotate_ranef.mer: Calculate s-dimensional rotated random effects

Description Usage Arguments Author(s) References

View source: R/rotate_ranefs.R

Description

This function calculates reduced dimensional rotated random effects. The rotation reduces the influence of the residuals from other levels of the model so that distributional assessment of the resulting random effects is possible.

Usage

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

## S3 method for class 'mer'
rotate_ranef(.mod, .L, s = NULL, .varimax = FALSE, ...)

## S3 method for class 'lmerMod'
rotate_ranef(.mod, .L, s = NULL, .varimax = FALSE, ...)

## S3 method for class 'lme'
rotate_ranef(.mod, .L, s = NULL, .varimax = FALSE, ...)

Arguments

.mod

an object of class mer or lmerMod.

...

do not use

.L

a matrix defining which combination of random effects are of interest.

s

the dimension of the subspace of interest.

.varimax

if .varimax = TRUE than the raw varimax rotation will be applied to the resulting rotation.

Author(s)

Adam Loy loyad01@gmail.com

References

Loy, A. & Hofmann, H. (in press). Are you Normal? The Problem of Confounded Residual Structures in Hierarchical Linear Models. Journal of Computational and Graphical Statistics.


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