| vcov.rlmerMod | R Documentation |
By default returns the same object as lme4's vcov.merMod (the
linearised model-based covariance). With type = "sandwich",
returns the robust cluster-sandwich vcov_sandwich.
## S3 method for class 'rlmerMod'
vcov(
object,
type = c("default", "sandwich"),
cluster = NULL,
correction = c("G1", "none"),
...
)
object |
An |
type |
|
cluster |
When |
correction |
When |
... |
Additional arguments passed to the default |
The cluster sandwich is exact for a single (nested) grouping factor;
for crossed factors it is approximate (a warning is issued, see
vcov_sandwich).
Small-J caveat for the sandwich. The G1 correction is
necessary but not sufficient at very small J: in a
simulation study sandwich CI coverage drops to ~0.89 at J =
8 (vs. nominal 0.95). vcov_sandwich emits a warning for
J < 20; for inference at small J prefer type =
"default" or pair the sandwich CI with a bootstrap calibration
(e.g. confintROB).
A p \times p covariance matrix for \hat{\beta}.
vcov_sandwich
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.