Skip to content

clubSandwich

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

v0.6.2 · Feb 1, 2026 · GPL-3

Description

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').

Downloads

14.2K

Last 30 days

1038th

44K

Last 90 days

169.9K

Last year

Trend: -12.7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (23)

Dependency Network

Dependencies Reverse dependencies sandwich lifecycle EquiTrends MAIVE PublicationBiasBenchmark RESI SynergyLMM citsr wildmeta estimatr ggeffects insight lavaSearch2 metaLong metadat metafor misty +8 more reverse deps clubSandwich

Version History

new 0.6.2 Mar 10, 2026
updated 0.6.2 ← 0.6.1 diff Feb 1, 2026
updated 0.6.1 ← 0.6.0 diff Jul 29, 2025
updated 0.6.0 ← 0.5.11 diff Mar 31, 2025
updated 0.5.11 ← 0.5.10 diff Jun 19, 2024
updated 0.5.10 ← 0.5.9 diff Jul 19, 2023
updated 0.5.9 ← 0.5.8 diff Jul 11, 2023
updated 0.5.8 ← 0.5.7 diff Aug 14, 2022
updated 0.5.7 ← 0.5.6 diff Jun 14, 2022
updated 0.5.6 ← 0.5.5 diff Apr 22, 2022
updated 0.5.5 ← 0.5.4 diff Jan 17, 2022
updated 0.5.4 ← 0.5.3 diff Jan 8, 2022
updated 0.5.3 ← 0.5.2 diff Jan 23, 2021
updated 0.5.2 ← 0.5.1 diff Nov 13, 2020
updated 0.5.1 ← 0.5.0 diff Oct 11, 2020
updated 0.5.0 ← 0.4.2 diff Aug 31, 2020
updated 0.4.2 ← 0.4.1 diff Jul 22, 2020
updated 0.4.1 ← 0.4.0 diff Jan 27, 2020
updated 0.4.0 ← 0.3.5 diff Dec 17, 2019
updated 0.3.5 ← 0.3.4 diff May 13, 2019