Skip to content

Repository files navigation

Data and Code for "Meta-Analysis and Public Policy: Reconciling the Evidence on Deworming"

The code in this replication package recreates the main data set and results in the paper using R and Stata. To replicate outputs, run main.do. The replicator should expect the code to run in less than 20 minutes.

DOI

Data Availability and Provenance Statements

The raw data used in the paper can be found in data/raw. The two main raw datasets are mda.dta, containing data from MDA trials and created by script 01, and tt.dta, contaning data from test-and-treat trials and created by script 02. The data from the Campbell Systematic Reviews was provided by the authors of that study.

License: Unlicense

The data is licensed under an Unlicense license. See LICENSE.txt for details.

Computational requirements

The code was last run on a 10-core Intel-based laptop with Windows 10 and 16GB RAM. The entire code ran in less than 20 minutes.

Software Requirements

  • Stata code was last run with version 18. The exact versions of all community-contributed packages last used are included in code/ado.
  • R code was last run with version 4.2.3. The exact versions of all packages last used are listed in renv.lock. To install these versions, launch the R project deworming.RProj and run renv::restore().

Controlled Randomness

Script 07_bayesian hierarchical models.R runs simulations and a random seed is set at line 89.

Description of programs/code

All scripts used for data creation and analysis are included in code. Scripts 01-03 create or import the raw data in data/raw. Scripts 04 and 05 reformat the raw data for use with different functions. Scripts 06-13 analyze the data. See main.do for a detailed description of inputs and outputs of each script.

License: CC BY 4.0

The code is licensed under a Creative Commons Attribution 4.0 license. See LICENSE.txt for details.

Instructions to Replicators

  • Edit line 11 in main.do to adjust the file path to the root directory of this repository
  • Edit line 33 in main.do to adjust the file path to the R installation in your computer
  • Run main.do to run all steps in sequence.
  • The Excel file output/Formatted tables.xlsx reads the csv files exported by the code and formats them as in the paper. It also adds some simple calculations as indicated in the Notes column of the table below.

List of tables and programs

The provided code reproduces all tables and figures in the paper, except for the items marked under "Note" below.

Figure/Table #ProgramLine NumberOutput fileNote
Table 1code/10_metan.do2output/tables/table1.csv
Table 2code/10_metan.do47output/tables/table2.csv
Table 3code/10_metan.do125output/tables/table3.csvColumns 7-12 use estimates from GiveWell (2017), Kristjansson et al. (2007), Kristjansson et al. (2015a), Kristjansson et al. (2016), and Neumann (2003).
Figure 1code/06_forest_plots.Routput/figures/figure1.png
Figure 2code/06_forest_plots.Routput/figures/figure2.png
Figure 3code/06_forest_plots.Routput/figures/figure3.png
Figure 4code/06_forest_plots.Routput/figures/figure4.png
Figure 5code/11_roodman_graph.Routput/figures/metaforest--.png
Table S2code/10_metan.do165output/tables/tableS2.csvCalculations for panel C are done directly in Excel
Table S3code/10_metan.do288output/tables/tableS3.csv
Table S4code/10_metan.do320output/tables/tableS4.csv
Table S5code/10_metan.do365output/tables/tableS5.csv
Table S6code/10_metan.do400output/tables/tableS6.csv
Table S7This table is created in Excel using values from tables 2 and 3
Table S8code/08_clean_stan_output.dooutput/tables/tableS8.csv
Figure S1code/13_compare_to_TMSDG.Routput/figures/figureS1.png
Table Fcode/12_tableF.dooutput/tables/tableF.csv
Table F1code/09_publication_bias.R162output/tables/andrews-kasy-bias-1.csv
Table F2code/09_publication_bias.R252output/tables/andrews-kasy-bias-2.csv
Figure F1code/09_publication_bias.R48output/figures/figureF1.png
Figure F1code/09_publication_bias.R48output/figures/figureF1.png

About

Data and Code for "Meta-Analysis and Public Policy: Reconciling the Evidence on Deworming"

Resources

Stars

3 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages