| vcov_sandwich | R Documentation |
rlmerMod object.Computes the robust score sandwich \hat{V}_{IF} = \hat{A}^{-1}
\hat{B} \hat{A}^{-T}, where \hat{A} is the Schur-complement
(marginal) Jacobian of the profiled \beta-score and \hat{B}
= \sum_j s_j s_j^T sums the per-cluster \beta-score
contributions s_j = \sum_{i \in j} x_i \psi_e(\hat{r}_i). Equal
to the user-facing vcov(object, type = "sandwich").
vcov_sandwich(fit, cluster = NULL, correction = c("G1", "none"))
fit |
|
cluster |
Cluster specification; see |
correction |
One of |
Exact for a single (nested) grouping factor; approximate for crossed
factors (a warning is issued via resolveCluster). With
few clusters, set correction = "G1" (default) for the
J/(J-1) small-sample scaling.
\hat{\sigma}, \hat{\theta} are held fixed (partial sandwich); the
returned variance is the leading-order fixed-effects covariance.
A p \times p covariance matrix for \hat{\beta},
with dimnames from the fixed-effect coefficient names and attribute
"n.clusters".
vcov, caseweightIF
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.