clubSandwich0.6.2 package

Cluster-Robust (Sandwich) Variance Estimators with Small-Sample Corrections

coef_test

Test all or selected regression coefficients in a fitted model

conf_int

Calculate confidence intervals for all or selected regression coeffici...

constraint_matrices

Create constraint matrices

findCluster.rma.mv

Detect cluster structure of an rma.mv object

impute_covariance_matrix

Impute a block-diagonal covariance matrix

linear_contrast

Calculate confidence intervals and p-values for linear contrasts of re...

pattern_covariance_matrix

Impute a patterned block-diagonal covariance matrix

vcovCR.geeglm

Cluster-robust variance-covariance matrix for a geeglm object.

vcovCR.glm

Cluster-robust variance-covariance matrix for a glm object.

vcovCR.gls

Cluster-robust variance-covariance matrix for a gls object.

vcovCR.ivreg

Cluster-robust variance-covariance matrix for an ivreg object.

vcovCR.lm_robust

Cluster-robust variance-covariance matrix for an estimatr::lm_robust...

vcovCR.lm

Cluster-robust variance-covariance matrix for an lm object.

vcovCR.lme

Cluster-robust variance-covariance matrix for an lme object.

vcovCR.lmerMod

Cluster-robust variance-covariance matrix for an lmerMod object.

vcovCR.mlm

Cluster-robust variance-covariance matrix for an mlm object.

vcovCR.plm

Cluster-robust variance-covariance matrix for a plm object.

vcovCR

Cluster-robust variance-covariance matrix

vcovCR.rma.mv

Cluster-robust variance-covariance matrix for a rma.mv object.

vcovCR.rma.uni

Cluster-robust variance-covariance matrix for a rma.uni object.

vcovCR.robu

Cluster-robust variance-covariance matrix for a robu object.

Wald_test

Test parameter constraints in a fitted linear regression model

Provides several cluster-robust variance estimators (i.e., sandwich estimators) for ordinary and weighted least squares linear regression models, including the bias-reduced linearization estimator introduced by Bell and McCaffrey (2002) <https://www150.statcan.gc.ca/n1/pub/12-001-x/2002002/article/9058-eng.pdf> and developed further by Pustejovsky and Tipton (2017) <DOI:10.1080/07350015.2016.1247004>. The package includes functions for estimating the variance- covariance matrix and for testing single- and multiple- contrast hypotheses based on Wald test statistics. Tests of single regression coefficients use Satterthwaite or saddle-point corrections. Tests of multiple- contrast hypotheses use an approximation to Hotelling's T-squared distribution. Methods are provided for a variety of fitted models, including lm() and mlm objects, glm(), geeglm() (from package 'geepack'), lm_robust() and lm_lin() (from package 'estimatr'), ivreg() (from package 'AER'), ivreg() (from package 'ivreg' when estimated by ordinary least squares), plm() (from package 'plm'), gls() and lme() (from 'nlme'), lmer() (from `lme4`), robu() (from 'robumeta'), and rma.uni() and rma.mv() (from 'metafor').

  • Maintainer: James E. Pustejovsky
  • License: GPL-3
  • Last published: 2026-02-02