This contains the code to reproduce the results in the manuscript Precise Unbiased Estimation in Randomized Experiments using Auxiliary Observational Data (Gagnon-Bartsch and Sales, et al).
docker load precise2023.tar.gz
docker run -it --rm -p 127.0.0.1:80:80 precise2023
docker
directory. data/download.Rmd
All of the analyses can be run by typing make
in the root directory. (This also first downloads the data.)
analysis
folder contains code notebooks in markdown format that can be run, e.g., in Jupyter.
01_remnant_model_1.md
: Fits the auxiliary data model for the first 22 experiments.02_remnant_model_2.md
: Fits the auxiliary data model for the other 11 experiments.03_assemble_data.Rmd
: Assembles the full 33-experiment dataset, including the predictions from the models above.04_estimate.Rmd
: Runs the main analyses of the paper and saves the output. 05_outputs.Rmd
: Produces the plots, tables, and other numerical results that are in the paper.06_appendixD.Rmd
: Reproduces the figures in Appendix D.scripts
: Additional python scripts used by the remnant models.data/original
folder should contain the raw data downloaded from https://osf.io/j6esa/.docker
folder only contains files necessary to build the docker image.output
folder contains the output (figures, tables, etc.) from running the code. package
folder contains an R package that implements the statistical methods from the paper.