This function returns the variance-covariance matrix as returned by vcov(),
but with finite population correction (FPC) applied.
Usage
vcovFPC(model, ...)
# S3 method for class 'merMod'
vcovFPC(model, population_size = NULL, cluster_size = NULL, kr = FALSE, ...)Arguments
- model
A model inheriting from
lm,glm,merModorglmmTMB(2-level only).- ...
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
TRUE, also applies Kenward-Roger adjustment to the returned variance-covariance matrix.
Value
The variance-covariance matrix of the fixed effect estimates, as
returned by vcov(), but with FPC applied.
