worldbank / ethiopia-rsdp-ie

Replication Package for: The Impact of Ethiopia's Road Sector Development Program: Evidence from Satellite Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code

Main Script

  • _ethiopia_rsdp_ie_main.R: Main script that runs all code

Organization

Code is organized into the below folders:

  • _functions: User-defined functions that are used throughout
  • 00_process_ancillary_datasets: Processes datasets that are used in subsequent scripts
  • 01_extract_data_to_datasets: Extracts data to different datasets (e.g., nighttime lights in 1x1km grid, Kebeles and Woredas)
  • 02_clean_analysis_data: Cleans data for analysis
  • 03_analysis_tables_figures: Code for analysis and for generating tables and figures

Data

Organization

Data can be found in the /data folder

  • Within /data, there is a folder for each dataset. Each dataset folder generally contains a /RawData and /FinalData folder, where /RawData contains data downloaded from its source and FinalData contains data processed from code.
  • Panel Data RSDP Impacts contains analysis datasets using different units of analysis and datasets of results (e.g., dataframe of regression coefficients that are later used to make figures). Within a dataset folder, /merged_datasets contains the final, analysis datasets. For example, /Data/Panel Data RSDP Impacts/kebele/merged_datasets/panel_data_clean.Rds contains cleaned Kebele-level panel data and /longdiff_data_clean_base1996_end2016.Rds contains cleaned Kebele-level data that uses a long difference from 1996 to 2016.

Datasets that need to be manually downloaded

The following datasets need to be manually downloaded. Click on the link for instructions that include (1) the link to access and download the data and (2) a description of which folder to put the downloaded dataset into.

To replicate analysis

  1. Clone/download this github repository
  2. Download the data that needs to be manually downloaded and put in the appropriate folders (see instructions above)
  3. In _ethiopia_rsdp_ie_main.R, project_dir should point to this github repo
  4. Run _ethiopia_rsdp_ie_main.R; this runs all scripts needed to replicate the analysis, including data cleaning and generating all tables and figures

About

Replication Package for: The Impact of Ethiopia's Road Sector Development Program: Evidence from Satellite Data


Languages

Language:R 98.7%Language:JavaScript 1.3%