corrRancomp {qape} | R Documentation |
Correction of predicted random components
Description
The function computes the corrected predicted random components as presented in Chambers and Chandra (2013) in Section 2.2 to avoid the problem of underdispersion of residual bootstrap distributions.
Usage
corrRancomp(model)
Arguments
model |
lmer object. |
Value
the vector of corrected predicted random components.
Author(s)
Tomasz Zadlo
References
Chambers, R. and Chandra, H. (2013) A Random Effect Block Bootstrap for Clustered Data, Journal of Computational and Graphical Statistics, 22(2), 452-470.
Examples
library(lme4)
data(invData)
attach(invData)
model <- lmer(investments ~ newly_registered + ((1|NUTS2) +
((newly_registered - 1)|NUTS2) + ((newly_registered)|NUTS4)))
corrRancomp(model)
detach(invData)
[Package qape version 2.1 Index]