Package: clubSandwich 0.7.0.9000

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

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(), lm_lin(), and iv_robust() (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'); rma.uni() and rma.mv() (from 'metafor'); and mmrm() (from 'mmrm').

Authors:James E. Pustejovsky [aut, cre], Hazim Izani [ctb], Samuel Pekofsky [ctb], Jingru Zhang [ctb]

clubSandwich_0.7.0.9000.tar.gz
clubSandwich_0.7.0.9000.zip(r-4.7)clubSandwich_0.7.0.9000.zip(r-4.6)clubSandwich_0.7.0.9000.zip(r-4.5)
clubSandwich_0.7.0.9000.tgz(r-4.6-any)clubSandwich_0.7.0.9000.tgz(r-4.5-any)
clubSandwich_0.7.0.9000.tar.gz(r-4.7-any)clubSandwich_0.7.0.9000.tar.gz(r-4.6-any)
clubSandwich_0.7.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
clubSandwich/json (API)
NEWS

# Install 'clubSandwich' in R:
install.packages('clubSandwich', repos = c('https://jepusto.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jepusto/clubsandwich/issues

Pkgdown/docs site:https://jepusto.github.io

Datasets:

On CRAN:

Conda:

12.57 score 52 stars 7 packages 824 scripts 17k downloads 3 mentions 11 exports 6 dependencies

Last updated from:a3c79948c4. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK372
source / vignettesOK239
linux-release-x86_64OK366
macos-release-arm64OK367
macos-oldrel-arm64OK365
windows-develOK357
windows-releaseOK352
windows-oldrelOK371
wasm-releaseOK142

Exports:coef_testconf_intconstrain_equalconstrain_pairwiseconstrain_zerofindCluster.rma.mvimpute_covariance_matrixlinear_contrastpattern_covariance_matrixvcovCRWald_test

Dependencies:clilatticelifecyclerlangsandwichzoo

Cluster-robust standard errors and hypothesis tests in panel data models

Rendered frompanel-data-CRVE.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2025-03-31
Started: 2016-07-22

Meta-analysis with cluster-robust variance estimation

Rendered frommeta-analysis-with-CRVE.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2022-06-11
Started: 2016-07-21

Wald tests of multiple-constraint null hypotheses

Rendered fromWald-tests-in-clubSandwich.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2022-06-11
Started: 2020-07-21

Readme and manuals

Help Manual

Help pageTopics
Achievement Awards Demonstration programAchievementAwardsRCT
Test all or selected regression coefficients in a fitted modelcoef_test
Calculate confidence intervals for all or selected regression coefficients in a fitted modelconf_int
Create constraint matricesconstraint_matrices constrain_equal constrain_pairwise constrain_zero
Dropout prevention/intervention program effectsdropoutPrevention
Detect cluster structure of an rma.mv objectfindCluster.rma.mv
Impute a block-diagonal covariance matriximpute_covariance_matrix
Calculate confidence intervals and p-values for linear contrasts of regression coefficients in a fitted modellinear_contrast
State-level annual mortality rates by cause among 18-20 year-oldsMortalityRates
Impute a patterned block-diagonal covariance matrixpattern_covariance_matrix
Randomized experiments on SAT coachingSATcoaching
Cluster-robust variance-covariance matrixvcovCR vcovCR.default
Cluster-robust variance-covariance matrix for a geeglm object.vcovCR.geeglm
Cluster-robust variance-covariance matrix for a glm object.vcovCR.glm
Cluster-robust variance-covariance matrix for a gls object.vcovCR.gls
Cluster-robust variance-covariance matrix for an 'estimatr::iv_robust' object.vcovCR.iv_robust
Cluster-robust variance-covariance matrix for an ivreg object.vcovCR.ivreg
Cluster-robust variance-covariance matrix for an lm object.vcovCR.lm
Cluster-robust variance-covariance matrix for an 'estimatr::lm_robust' object.vcovCR.lm_robust
Cluster-robust variance-covariance matrix for an lme object.vcovCR.lme
Cluster-robust variance-covariance matrix for an lmerMod object.vcovCR.lmerMod
Cluster-robust variance-covariance matrix for an mlm object.vcovCR.mlm
Cluster-robust variance-covariance matrix for an mmrm object.vcovCR.mmrm
Cluster-robust variance-covariance matrix for a plm object.vcovCR.plm
Cluster-robust variance-covariance matrix for a rma.mv object.vcovCR.rma.mv
Cluster-robust variance-covariance matrix for a rma.uni object.vcovCR.rma.uni
Cluster-robust variance-covariance matrix for a robu object.vcovCR.robu
Test parameter constraints in a fitted linear regression modelWald_test