Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
doc
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Travis build status Coverage status CRAN_Status_Badge

dfadjust

This package implements the small-sample degrees of freedom adjustments for robust and cluster-robust standard errors in linear regression described in Imbens and Kolesár (2016).

SAS version by Nicolas Moreau is available here.

See vignette dfadjust for description of the package (available through vignette("dfadjust") once package is installed), and the package manual for documentation of the package functions.

Example

No clustering:

set.seed(42)
x <- sin(1:10)
y <- rnorm(10)
fm <- lm(y~x)
dfadjustSE(fm)

Clustering:

clustervar <- as.factor(c(rep(1, 6), rep(2, 2), rep(3, 2)))
dfadjustSE(fm, clustervar)

Here we defined the first six observations to be in cluster 1, the next two in cluster 2, and the last three in cluster three.

Installation

You can install the released version of dfadjust from CRAN with:

install.packages("dfadjust")

Alternatively, you can get the current the development version from GitHub:

install.packages("remotes") # if not installed
remotes::install_github("kolesarm/Robust-Small-Sample-Standard-Errors")

About

Degrees of freedom adjustments for robust standard errors described in Imbens and Kolesár (2016, Review of Economics and Statistics)

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.