R package for gap closing estimands

Estimate Gaps Under an Intervention

We often want to understand the gap in outcomes between people of different social categories (e.g. racial, gender, or class categories). Further, one would like to know the degree to which the gap would close if we intervened to expose individuals all to some manipulable treatment (e.g. send people to college). This is the focus of the manuscript which is a companion to this package.

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.

This R Package provides functions to estimate gap-closing estimands.

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 intevals by the bootstrap
- Visualize the result in plots

Install from CRAN with one line: `install.packages("gapclosing")`

.

To install the latest development version or install before CRAN availability,

- First, install the
`devtools`

package:`if(!require(devtools)) install.packages("devtools")`

- Then, install the
`gapclosing`

package with the command`devtools::install_github("ilundberg/gapclosing")`

.

To get started, see the vignette. Also see the working paper for which this package is the software implementation.