Skip to content
CR2 needs insight (through performance), which CRAN will archive unless its check problems are fixed by Nov 14.

Compute Cluster Robust Standard Errors with Degrees of Freedom Adjustments

0packages depend
2.9Kdownloads / year
–test coverage
0/13flavors OK

Overview

About

Estimate different types of cluster robust standard errors (CR0, CR1, CR2) with degrees of freedom adjustments. Standard errors are computed based on 'Liang and Zeger' (1986) doi:10.1093/biomet/73.1.13 and Bell and 'McCaffrey' https://www150.statcan.gc.ca/n1/en/pub/12-001-x/2002002/article/9058-eng.pdf?st=NxMjN1YZ. Functions used in Huang and Li doi:10.3758/s13428-021-01627-0, Huang, 'Wiedermann', and 'Zhang' doi:10.1080/00273171.2022.2077290, and Huang, 'Zhang', and Li (forthcoming: Journal of Research on Educational Effectiveness).

Changes in 0.2.1
  • Added a NEWS.md file to track changes to the package.
  • Added col/row names to the robust variance/covariance matrix
  • Adjusted the "meat" matrix so computations would still run even if only the intercept is used as a predictor (a null model)
  • Added tidy methods so CR2 objects can be used with other packages such as modelsummary or gtsummary
  • As of 2023.01.03

From NEWS.md in the release

Install

Health

CRAN checks
13NOTE
Check messages
NOTERd filesr-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, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) sharedat.Rd:23: Lost braces
    23 | \doi{10.7910/DVN/YXMQZM}{Harvard dataverse}
       |                         ^
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Francis Huang <flhuang2000@yahoo.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

CRAN check page ↗

Slowest check: 3.3 min · r-release-macos-x86_64
Status changes
  • NOTE13 NOTENow
  • NOTE14 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.1
READMEYes · 65 wordsVignettesNoNEWSYes · 67% structured · mentions 0.2.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
13 (1 internal)
Examples that run
100%4 run in a plain check
Exported functions with examples
43%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
31%

Downloads

2.9K
CRAN downloads in the past year
Rank #17,546 · ~8/day · ~245/mo
Daily download trend is not available in this view yet.
25330 days
73590 days
2.9K1 year
Compare downloads with other packages →
Also on83 r2u7 autocran

Repository

1Stars
0Forks
2Open issues
0Open PRs
0Releases
76Commits
1Commit identities
76 commits · Last activity 2024-03-07 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2023-04-08 · 12026-07-07 · 1
PracticesBeta

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

Checks run against github.com/flh3/cr2 on 2026-10-21.

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing CR2 adds 34 packages (19 with compiled code, 34 MB of source tarballs). Heaviest: stringi 11 MB, lme4 4.3 MB, nloptr 2.1 MB.

Depends (1)
R >= 2.10
Imports (11)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Dependencies facing archival

CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.

Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.1.0 (2022)
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1Latest
    record
    2023-01-09 · current release · diff ↗ ·
    added 1 export
    %>%
  • 0.1.1
    record
    2022-06-17 · diff ↗
  • 0.1.0
    record
    2022-05-21
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-05-21
Total releases
3 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
53 KB / 4 files
Download size
78 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("CR2")

The package provides a citation file, so citation() returns the authors' own entry.

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 CR2 version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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