CRAN status

Estimate Gaps Under an Intervention


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:

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. Also see the working paper 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

Try the gapclosing package in your browser

Any scripts or data that you put into this service are public.

gapclosing documentation built on Oct. 11, 2021, 9:07 a.m.