This repository contains replication materials for Raze (2022), "Voting rights and the resilience of Black turnout," Economic Inquiry, 60(3), 1127–1141.
-
Download version 5.0 of the "Cumulative CCES Common Content" file (
cumulative_2006-2019.dta) from the Harvard Dataverse. -
Move
cumulative_2006-2019.dtato theDatafolder. -
Open the R project
shelby_county_voting_replication_replication.Rprojin RStudio. -
Install the
groundhogpackage by running the following in the RStudio console:
install.packages("groundhog")- Set up a local directory for packages by running the following in the RStudio console and entering "OK" when prompted:
groundhog::get.groundhog.folder()- Replicate the analysis by running the following in the RStudio console:
if (!require("callr")) install.packages("callr")
callr::rscript("Scripts/01-cces_data.R")
callr::rscript("Scripts/02-summary_statistics.R")
callr::rscript("Scripts/03-main_analysis.R")- Check the
Resultsfolder for.tex,.png, and.rdsoutputs.