Skip to content

dubilava/elnino

Repository files navigation

Replication Material

This repository hosts data and R scripts for the paper "Climate, Crops, and Postharvest Conflict" published in the American Journal of Agricultural Economics.

Data

Climate

Crops

Conflict

  • The conflict data are from the Armed Conflict Location & Event Data Project (ACLED) available at: http://acleddata.com. For details, see: Raleigh, C., A. Linke, H. Hegre, and J. Karlsen (2010). Introducing ACLED: "An Armed Conflict Location and Event Dataset: Special Data Feature." Journal of Peace Research 47(5): 651–660.

R scripts

To compile the data

This replication material does not include the original source data. However, scripts 01 through 05 provide brief instructions on obtaining these data. The compiled data generated by these scripts is included in the replication materials and can be used to create the final dataset using scripts 06 through 08. The datasets compiled by scripts 06, 07, and 08 are not included here due to their large size. However, they can be replicated in just a few minutes by sequentially running scripts 06, 07, and 08.

  • 01-getprec.r: download and store precipitation data
  • 02-gettmax.r: download and store temperature data
  • 03-getcalendar.r: download and store harvest calendar data
  • 04-getspam.r: download and store harvest area data
  • 05-getacled.r: download and store conflict data
  • 06-climatecrops.r: combine climate and crops data
    • the compiled data not stored in the replication material for its large size, but it can be replicated by running this script.
  • 07-climatecropsconflict.r: add conflict data to the combined climate and crops data
    • the compiled data not stored in the replication material for its large size, but it can be replicated by running this script.
  • 08-climatecropsconflict_agri.r: add agrarian conflict data to the combined climate and crops data
    • the compiled data not stored in the replication material for its large size, but it can be replicated by running this script.

To replicate the results

To replicate the results, first run scripts 06, 07, and 08 to compile the dataset required for the analyses.

License

License: MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •