rvc.mer: Relative variance change for HLMs

Description Usage Arguments Value Author(s) References See Also

View source: R/influence_functions.R

Description

This function calculates the relative variance change (RVC) of hierarchical linear models fit via lmer.

Usage

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

## S3 method for class 'mer'
rvc(object, level = 1, delete = NULL, ...)

## S3 method for class 'lmerMod'
rvc(object, level = 1, delete = NULL, ...)

## S3 method for class 'lme'
rvc(object, level = 1, delete = NULL, ...)

Arguments

object

fitted object of class mer or lmerMod

...

do not use

level

variable used to define the group for which cases will be deleted. If level = 1 (default), then individual cases will be deleted.

delete

index of individual cases to be deleted. To delete specific observations the row number must be specified. To delete higher level units the group ID and group parameter must be specified. If delete = NULL then all cases are iteratively deleted.

Value

If delete = NULL a matrix with columns corresponding to the variance components of the model and rows corresponding to the deleted observation/group is returned.

If delete is specified then a named vector is returned.

The residual variance is named sigma2 and the other variance components are named D** where the trailing digits give the position in the covariance matrix of the random effects.

Author(s)

Adam Loy loyad01@gmail.com

References

Dillane, D. (2005) Deletion Diagnostics for the Linear Mixed Model. Ph.D. thesis, Trinity College Dublin

See Also

leverage.mer, cooks.distance.mer, mdffits.mer, covratio.mer, covtrace.mer


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