Package: CR2 0.2.1

Francis Huang

CR2: Compute Cluster Robust Standard Errors with Degrees of Freedom Adjustments

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

Authors:Francis Huang [aut, cre], Bixi Zhang [aut]

CR2_0.2.1.tar.gz
CR2_0.2.1.zip(r-4.5)CR2_0.2.1.zip(r-4.4)CR2_0.2.1.zip(r-4.3)
CR2_0.2.1.tgz(r-4.5-any)CR2_0.2.1.tgz(r-4.4-any)CR2_0.2.1.tgz(r-4.3-any)
CR2_0.2.1.tar.gz(r-4.5-noble)CR2_0.2.1.tar.gz(r-4.4-noble)
CR2_0.2.1.tgz(r-4.4-emscripten)CR2_0.2.1.tgz(r-4.3-emscripten)
CR2.pdf |CR2.html
CR2/json (API)
NEWS

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

Bug tracker:https://github.com/flh3/cr2/issues

Datasets:
  • crct - Simulated data from 18 schools
  • gpadat - Grade point average (GPA) data of students from 25 schools
  • sch25 - Data from 25 schools
  • sharedat - Data from Project SHARE

On CRAN:

Conda:

2.70 score 1 stars 7 scripts 227 downloads 7 exports 40 dependencies

Last updated 1 years agofrom:cf7e9f6818. Checks:3 OK, 6 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKApr 01 2025
R-4.5-winNOTEApr 01 2025
R-4.5-macNOTEApr 01 2025
R-4.5-linuxNOTEApr 01 2025
R-4.4-winNOTEApr 01 2025
R-4.4-macNOTEApr 01 2025
R-4.4-linuxNOTEApr 01 2025
R-4.3-winOKApr 01 2025
R-4.3-macOKApr 01 2025

Exports:%>%clustSEgetVMatSqrtInversencvMLMrobust_mixedsatdf

Dependencies:backportsbayestestRbootbroomclicpp11datawizarddplyrfansigenericsglueinsightlatticelifecyclelme4magrittrMASSMatrixminqanlmenloptrperformancepillarpkgconfigpurrrR6rbibutilsRcppRcppEigenRdpackreformulasrlangstringistringrtibbletidyrtidyselectutf8vctrswithr