Package: gapclosing 1.0.2
Ian Lundberg
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 Lundberg (2021) <doi:10.31235/osf.io/gx4y3>.
Authors:
gapclosing_1.0.2.tar.gz
gapclosing_1.0.2.zip(r-4.5)gapclosing_1.0.2.zip(r-4.4)gapclosing_1.0.2.zip(r-4.3)
gapclosing_1.0.2.tgz(r-4.4-any)gapclosing_1.0.2.tgz(r-4.3-any)
gapclosing_1.0.2.tar.gz(r-4.5-noble)gapclosing_1.0.2.tar.gz(r-4.4-noble)
gapclosing_1.0.2.tgz(r-4.4-emscripten)gapclosing_1.0.2.tgz(r-4.3-emscripten)
gapclosing.pdf |gapclosing.html✨
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
Last updated 2 years agofrom:77f8ccc337. Checks:OK: 1 NOTE: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 29 2024 |
R-4.5-win | NOTE | Oct 29 2024 |
R-4.5-linux | NOTE | Oct 29 2024 |
R-4.4-win | NOTE | Oct 29 2024 |
R-4.4-mac | NOTE | Oct 29 2024 |
R-4.3-win | NOTE | Oct 29 2024 |
R-4.3-mac | NOTE | Oct 29 2024 |
Exports:%>%cross_fit_estimatordf_to_gapclosing_listdisparityplotfit_ridgegapclosinggenerate_simulated_datapairwise_diffpoint_estimator
Dependencies:clicodetoolscolorspacecpp11doParalleldplyrfansifarverforcatsforeachgenericsggplot2glmnetgluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpurrrR6rangerRColorBrewerRcppRcppEigenrlangscalesshapestringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Coerce to a Data Frame | as.data.frame.gapclosing |
Cross-fitting gap closing estimator | cross_fit_estimator |
Convert Back to Canonical List Output | df_to_gapclosing_list |
Plot a disparity | disparityplot |
Ridge regression estimator | fit_ridge |
Gap closing estimator | gapclosing |
Generate simulated data | generate_simulated_data |
Pairwise difference calculator | pairwise_diff |
Plot function for gapclosing objects | plot.gapclosing |
Point estimator for gap-closing estimands | point_estimator |
Print function for gapclosing objects | print.gapclosing |
Summary function for gapclosing objects | summary.gapclosing |