robust-small-sample-standard-errors
Degrees of freedom adjustments for robust standard errors described in Imbens and Kolesár (2016, Review of Economics and Statistics)
https://github.com/kolesarm/robust-small-sample-standard-errors
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.2%) to scientific vocabulary
Repository
Degrees of freedom adjustments for robust standard errors described in Imbens and Kolesár (2016, Review of Economics and Statistics)
Basic Info
Statistics
- Stars: 31
- Watchers: 2
- Forks: 7
- Open Issues: 0
- Releases: 6
Metadata Files
README.md
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).
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:
r
x <- sin(1:10)
y <- tan(1:10)
fm <- lm(y~x)
dfadjustSE(fm)
Clustering:
r
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.
The package handles cluster fixed effects, and large clusters. Computing the adjustment with one million observations and 50 clusters takes about 5 seconds:
``` r N <- 10^6 x <- sin(1:N) y <- seq(N) clustervar <- as.factor(rep(1:50, each=N/50)) fm <- lm(y~x+clustervar)
Inference on x, i.e. second coefficient
dfadjustSE(fm, ell=2, clustervar=clustervar) ```
Installation
You can install the released version of dfadjust from
CRAN with:
r
install.packages("dfadjust")
Alternatively, you can get the current development version from GitHub:
r
if (!requireNamespace("remotes")) {
install.packages("remotes")
}
remotes::install_github("kolesarm/Robust-Small-Sample-Standard-Errors")
Owner
- Name: Michal Kolesar
- Login: kolesarm
- Kind: user
- Location: Princeton, NJ
- Website: https://www.princeton.edu/~mkolesar
- Repositories: 15
- Profile: https://github.com/kolesarm
GitHub Events
Total
- Create event: 1
- Release event: 1
- Issues event: 1
- Issue comment event: 3
- Push event: 8
Last Year
- Create event: 1
- Release event: 1
- Issues event: 1
- Issue comment event: 3
- Push event: 8
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Michal Kolesár | k****i@g****m | 36 |
| Michal Kolesár | k****m@p****e | 7 |
| Michal Kolesar | k****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 3
- Total pull requests: 0
- Average time to close issues: about 2 months
- Average time to close pull requests: N/A
- Total issue authors: 3
- Total pull request authors: 0
- Average comments per issue: 3.33
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: 4 months
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 5.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- skranz (1)
- lboxell (1)
- Breakend (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 285 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 7
- Total maintainers: 1
cran.r-project.org: dfadjust
Degrees of Freedom Adjustment for Robust Standard Errors
- Homepage: https://github.com/kolesarm/Robust-Small-Sample-Standard-Errors
- Documentation: http://cran.r-project.org/web/packages/dfadjust/dfadjust.pdf
- License: MIT + file LICENSE
-
Latest release: 1.1.0
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.6.0 depends
- formatR * suggests
- knitr * suggests
- rmarkdown * suggests
- sandwich * suggests
- spelling * suggests
- testthat >= 2.1.0 suggests
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- r-lib/actions/setup-tinytex v2 composite
- actions/checkout v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- codecov/codecov-action v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- r-hub/actions/checkout v1 composite
- r-hub/actions/platform-info v1 composite
- r-hub/actions/run-check v1 composite
- r-hub/actions/setup v1 composite
- r-hub/actions/setup-deps v1 composite
- r-hub/actions/setup-r v1 composite
- r-lib/actions/setup-pandoc v2 composite
- teatimeguest/setup-texlive-action v3 composite