Package: gapclosing 1.0.3

gapclosing: Estimate Gaps Under an Intervention

Provides functions to estimate the disparities across categories (e.g. Black and white) that persists if a treatment variable (e.g. college) is equalized. Makes estimates by treatment modeling, outcome modeling, and doubly-robust augmented inverse probability weighting estimation, with standard errors calculated by a nonparametric bootstrap. Cross-fitting is supported. Survey weights are supported for point estimation but not for standard error estimation; those applying this package with complex survey samples should consult the data distributor to select an appropriate approach for standard error construction, which may involve calling the functions repeatedly for many sets of replicate weights provided by the data distributor. The methods in this package are described in the accompanying paper: <doi:10.1177/00491241211055769>.

Authors:Ian Lundberg [aut, cre]

gapclosing_1.0.3.tar.gz
gapclosing_1.0.3.zip(r-4.7)gapclosing_1.0.3.zip(r-4.6)gapclosing_1.0.3.zip(r-4.5)
gapclosing_1.0.3.tgz(r-4.6-any)gapclosing_1.0.3.tgz(r-4.5-any)
gapclosing_1.0.3.tar.gz(r-4.7-any)gapclosing_1.0.3.tar.gz(r-4.6-any)
gapclosing_1.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gapclosing/json (API)

# Install 'gapclosing' in R:
install.packages('gapclosing', repos = c('https://ilundberg.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ilundberg/gapclosing/issues

On CRAN:

Conda:

4.68 score 8 stars 12 scripts 60 downloads 9 exports 47 dependencies

Last updated from:db0d20dc26. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK160
source / vignettesOK347
linux-release-x86_64OK187
macos-release-arm64OK161
macos-oldrel-arm64OK155
windows-develOK102
windows-releaseOK88
windows-oldrelOK135
wasm-releaseOK112

Exports:%>%cross_fit_estimatordf_to_gapclosing_listdisparityplotfit_ridgegapclosinggenerate_simulated_datapairwise_diffpoint_estimator

Dependencies:clicodetoolscpp11digestdoParalleldoRNGdplyrfarverforcatsforeachgenericsggplot2glmnetgluegtableisobanditeratorslabelinglatticelifecyclemagrittrMatrixmgcvnlmepillarpkgconfigpurrrR6rangerRColorBrewerRcppRcppEigenrlangrngtoolsS7scalesshapestringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

gapclosing: An R package to estimate gap closing estimands

Rendered fromgapclosing.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2023-03-08
Started: 2021-02-17