Main content



Loading wiki pages...

Wiki Version:
This page provides replication do files for "Heterogeneous Treatment Effects in the Low Track: Revisiting the Kenyan Primary School Experiment" Most code will be provided for Stata (currently all). The Wild Gradient Bootstraps (not yet available) will be provided in R code, but the Stata code here employs an alternative standard error estimator that produces very similar confidence intervals. The code is generally written so as to be easily manipulable by the replicating researcher, facilitating robustness checks and exploration of alternative specification. To begin: 1 - Download the study data from here: 2 - Download the "DDK_Setup_OSF" do file from the "Replication Do Files" folder below, and open in Stata editor 3 - Enter the appropriate folder names into the global Macros at the top. i. I suggest you set the bootstrap reps to 3 initially if you want to just replicate the point estimates. Bootstraps of local non-parametric regressions can be computationally intensive. These take approximately 20-30 minutes to run on my computer (Macbook Dual Core). 4 - Run "DDK_Setup". i. This will generate a clean, analysis-ready data set with sub-groups defined similarly for all further analysis. ii. it will point any files you save to the folder you name in "DDKsave" global, as well as saving the clean dataset there. 5 - You can now run any of the analysis do files. In most, at the top of the do file you can define your sub-group of interest using any of the definition generated in Setup or any definition you like. i. a number of files also allow you to adjust parameters of the model, such as bandwidth, regression specifications, etc. 6 - More extensive documentation, along with the missing do files, will be posted as soon as possible. i. Missing do files include the Wild Gradient Bootstrap code and the test of rank similarity.