View source: R/get_varcov_fpc.R
| vcovFPC | R Documentation |
This function returns the variance-covariance matrix as returned by vcov(),
but with finite population correction (FPC) applied.
vcovFPC(model, ...)
## S3 method for class 'merMod'
vcovFPC(model, population_size = NULL, cluster_size = NULL, kr = FALSE, ...)
model |
A model inheriting from |
... |
Not used. |
population_size |
The finite population size (for mixed models: for level-1). |
cluster_size |
The finite population size for level-2 (cluster groups). |
kr |
Logical, if |
The FPC is defined as:
FPC = \frac{N - n}{N - 1}
FPC for multilevel models is based on the method described by Lai et al. (2018).
The variance-covariance matrix of the fixed effect estimates, as
returned by vcov(), but with FPC applied.
Lai, M. H., Kwok, O. M., Hsiao, Y. Y., & Cao, Q. (2018). Finite population correction for two-level hierarchical linear models. Psychological methods, 23(1), 94.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.