Skip to content

clubSandwich

0.7.0

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

25packages depend
196.5Kdownloads / year
95.0%test coverage
8/13checks pass

Overview

About
Maintained by James E. PustejovskyFirst published 2016-07-2328 releasesCRAN page ↗GitHub ↗

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

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 14.9 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 1.68
95.0%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • NOTE2026-07-16
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-06
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-23
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
96%
Return-value docs
100%
References docs
18%

Downloads

196.5K
CRAN downloads in the past year
Rank #955 · ~538/day · ~16.4K/mo
Daily download trend is not available in this view yet.
16.4K30 days
47.3K90 days
196.5K1 year
Compare downloads with other packages →
Also on2K r2u23 autocran70 c2d4u

Repository

Repository
53Stars
8Forks
17Open issues
2Open PRs
23Releases
1,040Commits
7Contributors
1,040 commits · Last activity 2026-05-04 · +1.9% stars, 30d

Stars over time

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

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/jepusto/clubsandwich on 2026-07-30.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.0.0
Imports (3)
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (3)
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
no longer listed · 0.6.0 to 0.7.0
Package Timeline

28 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.7.0Latest
    2026-05-04 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6.2
    2026-02-02 · diff ↗
  • 0.6.1
    2025-07-30 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.6.0
    2025-04-01 · diff ↗
  • 0.5.11
    2024-06-20 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5.10
    2023-07-20 · diff ↗
  • 0.5.9
    2023-07-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5.8
    2022-08-15 · diff ↗
  • 0.5.7
    2022-06-15 · diff ↗
  • 0.5.6
    2022-04-23 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.5.5
    2022-01-18 · diff ↗
Show 27 earlier events
  • 0.5.4
    2022-01-09 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5.3
    2021-01-24 · diff ↗
  • 0.5.2
    2020-11-14 · diff ↗
  • unarchivedReturned to CRAN
    2020-11-14
  • archivedRemoved from CRAN
    2020-10-27
    check problems were not corrected in time ATLAS
  • 0.5.1
    2020-10-12 · diff ↗
  • 0.5.0
    2020-09-01 · diff ↗
  • unarchivedReturned to CRAN
    2020-09-01
  • archivedRemoved from CRAN
    2020-08-06
    check problems were not corrected despite reminders MKL, no long doubles
  • 0.4.2
    2020-07-23 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4.1
    2020-01-28 · diff ↗
  • 0.4.0
    2019-12-18 · diff ↗
  • 0.3.5
    2019-05-14 · diff ↗
  • 0.3.4
    2019-05-11 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.3
    2019-01-24 · diff ↗
  • 0.3.2
    2018-05-22 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.3.1
    2018-04-04 · diff ↗
  • 0.3.0
    2017-11-13 · diff ↗
  • 0.2.3
    2017-08-10 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.2
    2016-12-01 · diff ↗
  • 0.2.1
    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
357 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →