This function calculates the relative variance change (RVC) of
hierarchical linear models fit via lmer
.
# S3 method for default rvc(object, ...) # S3 method for mer rvc(object, level = 1, delete = NULL, ...) # S3 method for lmerMod rvc(object, level = 1, delete = NULL, ...) # S3 method for lme rvc(object, level = 1, delete = NULL, ...)
object | fitted object of class |
---|---|
... | do not use |
level | variable used to define the group for which cases will be
deleted. If |
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 |
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.
Dillane, D. (2005) Deletion Diagnostics for the Linear Mixed Model. Ph.D. thesis, Trinity College Dublin
Adam Loy loyad01@gmail.com