Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Replication Material

This repository hosts the data and R codes for the paper "Price Transmission in Conflict--Affected States: Evidence from Cereal Markets of Somalia," which is a joint work with Justin Hastings, Sarah Phillips, and Andrey Vasnev. The working paper of this study is available at

The codes should run with no issue and replicate the results of the study as long as all the supplied material (i.e., the data file as well as the R codes) are stored in the same folder.


dataset.RData contains all the data needed to replicate the results of the study. These data were obtained from multiple sources, and in most instances, have been manipulated from their original form to their present one. The original data sources are as follows:

  • Conflict: Armed Conflict Location & Event Data (ACLED) Project of Raleigh, et al. (2010). Introducing ACLED: An Armed Conflict Location and Event Dataset: Special Data Feature. Journal of Peace Research 47(5): 651–660. Data available at
  • Prices: Food and Agriculture Organization of the United Nation's (FAO) Food Price Monitoring and Analysis (FPMA) Tool database of Global Information and Early Warning System on Food and Agriculture (GIEWS). Data available at
  • Roads: OpenStreetMap project via Geofabrik, available at:
  • Distances and Travel Time: Google maps. Accessed on 4 October 2020.

R codes

  • conflict_map.r generates Figure 1.
  • descriptive.r generates Tables 1 and 2, Figure 2, and Appendix Figure 1.
  • regressions_pstr.r generates the main results of the study, Tables 3 and 4, and Appendix Figure 2.
  • regressions_pstr_omit.r generates Figure 3.
  • mysript.r is an auxiliary file that contains a function to estimate the PSTR model, used in regressions_pstr.r and regressions_pstr_omit.r.


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.


Data and code for "Price Transmission in Conflict-Affected States: Evidence from Cereal Markets of Somalia" (2021, Journal of African Economies)