Learn R Programming

CR2

Compute CR0, CR1, CR2 cluster robust standard errors with empirical-degrees of freedom adjustments

Includes syntax that computes the standard error adjustments and degrees of freedom adjustments. Syntax is not optimized for speed but included for readers who want to follow through the syntax step-by-step.

To uninstall: Extensions -> Utilities -> Custom Dialog Builder (Compatability Mode). Select File -> Uninstall ... Select the Cluster_Robust_Reg_compatibility

Copy Link

Version

Install

install.packages('CR2')

Monthly Downloads

215

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Francis Huang

Last Published

January 9th, 2023

Functions in CR2 (0.2.1)

tidy.CR2

Tidy a CR2 object
MatSqrtInverse

Compute the inverse square root of a matrix
getV

Get V matrix for merMod objects
ncvMLM

Testing for nonconstant variance (ncv)
clustSE

Cluster robust standard errors with degrees of freedom adjustments (for lm and glm objects)
satdf

Compute Satterthwaite degrees of freedom
glance.CR2

Glance at goodness-of-fit statistics
sch25

Data from 25 schools (based on the NELS dataset)
robust_mixed

Cluster robust standard errors with degrees of freedom adjustments for lmerMod/lme objects
gpadat

Grade point average (GPA) data of students from 25 schools
%>%

Pipe operator
sharedat

Data from Project SHARE
crct

Simulated data from 18 schools (from a cluster randomized controlled trial)