https://github.com/ilundberg/gapclosing
R package for gap closing estimands
https://github.com/ilundberg/gapclosing
Last synced: 5 months ago
JSON representation
R package for gap closing estimands
- Host: GitHub
- URL: https://github.com/ilundberg/gapclosing
- Owner: ilundberg
- License: other
- Created: 2021-02-17T03:12:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T13:30:08.000Z (about 2 years ago)
- Last Synced: 2024-04-25T21:04:15.460Z (12 months ago)
- Language: JavaScript
- Size: 6.74 MB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ilundberg/gapclosing - R package for gap closing estimands (JavaScript)
README
# gapclosing
[](https://CRAN.R-project.org/package=gapclosing) [](https://cran.r-project.org/package=gapclosing)
Estimate Gaps Under an Intervention
# Summary
Provides functions to estimate gap-closing estimands: the disparities across categories (e.g. Black and white) that persists if a treatment variable (e.g. college) is equalized. The purpose is to estimate the average outcomes that units would realize if exposed to a counterfactual treatment assignment rule.
The package will enable the user to:
* Estimate treatment and outcome prediction functions with Generalized Linear Models, Generalized Additive Models, ridge regression, or random forest
* Combine those in doubly-robust estimators of gap-closing estimands
* Produce confidence intervals by the bootstrap
* Visualize the result in plots# Installation instructions
Install from CRAN with one line: `install.packages("gapclosing")`.
To install the latest development version,
1. First, install the `devtools` package: `if(!require(devtools)) install.packages("devtools")`
2. Then, install the `gapclosing` package with the command `devtools::install_github("ilundberg/gapclosing")`.# Getting started
To get started, see the [vignette](https://ilundberg.github.io/gapclosing/doc/gapclosing.html). Also see the [working paper](https://doi.org/10.31235/osf.io/gx4y3) for which this package is the software implementation.
>Lundberg, Ian. Forthcoming. "The gap-closing estimand: A causal approach to study interventions that close disparities across social categories." _Sociological Methods and Research_. Draft available at [https://doi.org/10.31235/osf.io/gx4y3](https://doi.org/10.31235/osf.io/gx4y3).