Skip to content

clubSandwich

0.7.0Package record

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

9packages dependsuggested by 18
197.2Kdownloads / year
95.0%test coverage
8/13flavors OK

Overview

About

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

Changes in 0.7.0
  • Added support for mmrm::mmrm() models.
  • Added support for estimatr::iv_robust() models.
  • Fixed bug in internal function get_data() introduced by changes in error message structure in R-devel.

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  clubSandwich/R/mlm.R (.Dimnames: 2)
'.Dimnames' should be changed to 'dimnames'.

CRAN check page ↗

Slowest check: 12.5 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK13 OK2026-05-06
  • ERROR13 OK, 1 ERROR2026-04-23
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.7.0
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.7.0Citation fileNoWebsiteYes · pkgdown
Help pages
28
Examples that run
100%24 run in a plain check (14 of them under a condition)
Exported functions with examples
100%
Documented parameters
96%
Return-value docs
100%
Help pages citing references
18%

Downloads

197.2K
CRAN downloads in the past year
Rank #838 · ~540/day · ~16.4K/mo
Daily download trend is not available in this view yet.
18.6K30 days
53.4K90 days
197.2K1 year
Compare downloads with other packages →
Also on2.1K r2u4 autocran132 c2d4u

Repository

53Stars
9Forks
17Open issues
2Open PRs
23Releases
1,040Commits
7Commit identities
1,040 commits · Last activity 2026-05-04 · 0% stars, 30d · Default branch at 0.7.0.9000, ahead of CRAN 0.7.0 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
15
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-06-11 · 492026-07-07 · 53
PracticesBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/jepusto/clubsandwich on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-05-04 · The repository has a site deploy workflow

pkgdown site last built 2026-05-04

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing clubSandwich adds 5 packages (3 with compiled code, 3.5 MB of source tarballs). Heaviest: sandwich 1.4 MB, rlang 766 KB, zoo 675 KB.

Depends (1)
R >= 3.0.0
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
9direct
0indirect
Imports 9
Suggested by 18
Show all 27 packagesHide all 27 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (4)
Author, Maintainer since 0.2.1 (2016)
Contributor · added in 0.7.0
Contributor · added in 0.6.0
Contributor · added in 0.6.0
Listed in earlier versions (2)
no longer listed · 0.2.1 to 0.5.11
James E.
no longer listed · 0.6.0 to 0.7.0
Releases (28)

Pick two releases to compare their code metrics.

Show 27 earlier eventsHide 27 earlier events
  • 0.5.4
    record
    2022-01-09 · diff ↗ ·
    added 1 export
    findCluster.rma.mv
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5.3
    record
    2021-01-24 · diff ↗
  • unarchivedReturned to CRAN
    2020-11-14
  • 0.5.2
    record
    2020-11-14 · diff ↗
  • archivedRemoved from CRAN
    2020-10-27
    check problems were not corrected in time ATLAS
  • 0.5.1
    record
    2020-10-12 · diff ↗ ·
    added 1 export
    pattern_covariance_matrix
  • unarchivedReturned to CRAN
    2020-09-01
  • 0.5.0
    record
    2020-09-01 · diff ↗ ·
    added 3 exports
    constrain_equal, constrain_pairwise, constrain_zero
  • archivedRemoved from CRAN
    2020-08-06
    check problems were not corrected despite reminders MKL, no long doubles
  • 0.4.2
    record
    2020-07-23 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4.1
    record
    2020-01-28 · diff ↗
  • 0.4.0
    record
    2019-12-18 · diff ↗
  • 0.3.5
    record
    2019-05-14 · diff ↗
  • 0.3.4
    record
    2019-05-11 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.3
    record
    2019-01-24 · diff ↗
  • 0.3.2
    record
    2018-05-22 · diff ↗ ·
    added 1 export
    conf_int
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3.1
    record
    2018-04-04 · diff ↗
  • 0.3.0
    record
    2017-11-13 · diff ↗
  • 0.2.3
    record
    2017-08-10 · diff ↗ ·
    added 1 export
    impute_covariance_matrix
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.2
    record
    2016-12-01 · diff ↗
  • 0.2.1
    record
    2016-07-23
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-07-23
Total releases
28 / 10 yrs
License
GPL-3 OSI
Minimum R
≥ 3.0.0
Bundled data
160 KB / 4 files
Download size
372 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("clubSandwich")
Pustejovsky, J. E., Izani, H., Pekofsky, S., & Zhang, J. (2026). clubSandwich: Cluster-Robust (Sandwich) Variance Estimators with Small-Sample Corrections (Version 0.7.0) [Computer software]. https://doi.org/10.32614/CRAN.package.clubSandwich

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for clubSandwich version 0.7.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy