/cps-downstream

Replication data for The Lessons Private Schools Teach: Using a Field Experiment to Understand the Effects of Private Services on Political Behavior

Primary LanguageTeX

This repository provides data, replication code, and a latex manuscript to replicate "The Lessons Private Schools Teach: Using a Field Experiment to Understand the Effects of Private Services on Political Behavior" accepted at Comparative Political Studies.

Contact

For any questions regarding the replication code and data, please contact Emmerich Davies

Replication

Data can be accessed from CPS's dataverse or the author's personal github page

To replicate the R scripts, the easiest way would likely be to open the cps_downstream.Rproj file in RStudio and the files should be easy to run from there.

For stata, you will have to change the absolute paths at the beginning of each stata do-file.

Data Access

Please email me if gaining access to non-public data is not straightforward. I should be able to point to locations where this is available with requests now if the information below is out of date.

Packages

R Packages

All R packages should be publicly available through CRAN. A list of packages required to run the code here is provided at the top of every script and in data/scripts/01_r_setup.R. You can also run data/scripts/01_r_setup.R that will check if your computer has the required packages, download, install and load them if not (this is very aggressive), and create the requried file paths. NB: If you clone this repository from github, the file path should automatically be created.

Stata packages

The code requires two stata packages:

  1. center. You should be able to install it either by running data/scripts/02_stata_setup.do or typing ssc install center in your Stata command line.
  2. estout. You should be able to install it either by running data/scripts/02_stata_setup.do or typing ssc install estout in your Stata command line.
  3. make_index. You will need to manually download this.

Software versions

Analysis was conducted using Stata V16.1 and R V4.0.2 (2020-06-22)