Data and replication materials for Gaebler and Goel (2025) "A Simple, Statistically Robust Test of Discrimination".
J.D. Gaebler, & S. Goel, A simple, statistically robust test of discrimination, Proc. Natl. Acad. Sci. U.S.A. 122 (10) e2416348122, https://doi.org/10.1073/pnas.2416348122 (2025).
To reproduce the analyses in our paper:
- Make sure you have
Rversion 4.4.0 and thegroundhogpackage installed. - Ensure that you have
curlinstalled, and run the download script from the root directory:
bash download.sh- Ensure you have
makeinstalled and run the following command from the root directory:
make clean
makeThis will delete all of the processed output files for the COMPAS, LSAT, RIPA,
and SQF analyses, reprocess the raw data, and regenerate the plots in the
plots directory. The analysis and plotting take around half an hour on a
single M1 core.
The original download scripts used to obtain the data are contained in the root
directory: download-compas.sh, download-lsat.sh, download-ripa.sh, and
download-sqf.sh.