20 September 2012 This file contains metadata for the replication material for: O’Loughlin, J., F. Witmer, A. Linke, A. Laing, A Gettelman, and J. Dudhia (2012). “Climate variability and conflict risk in East Africa 1990-2009.” Proceedings of the National Academy of Sciences. DATA FILES PNAS_DataFiles.zip longDataMonth.csv Processed data file in long, grid-month format Place this file in 'dataDir' gridsGCScarto.shp Polygon shapefile of 414 one degree grids grids402.shp Polygon shapefile of 402 one degree grids, subset used in the analysis "NewID" field matches the grid ID portion of the "rowID" field found in longDataMonth.csv ESRI_countries14.shp Polygon shapefile from ESRI of country borders ANALYSIS FILES PNAS_AnalysisFiles.zip The user will need to set directories (currently set to 'XXX') in many of these files. Published analysis results run using R version 2.15.0 and current packages on machines with 6-32 GB RAM. SharedClimateModelFunctions.R Common R file to load shared climate model functions e.g. myGLM(), writeGLM(), myGAM(), writeGAM() Scripts expect this file to be one directory above 'outDir' (change as needed) LoadOneDegGridMonthData.R Common R file to load grid-month data Scripts expect this file to be one directory above 'outDir' (change as needed) The remaining files depend on the previous 2 common files and contain the model-specific code MainGridMnthModels.R Generates Tables 1, 2, S1, S5 col. g, and Figs 1 & 2 CountryGAMmodels.R Generates Table S2 and Figs S5 and S6 FiveYrGAMmodels.R Generates Table S3, cols a-d and Figs S7 a-d and S8 a-d ExtremeWeatherGAMmodels.R Generates Table S3, cols e-g and Figs S7 e-g and S8 e-g DMI_Models.R Generates Table S3, col. h and Figs S7h and S8h ACLED_CivRiots.R Generates Table S4, col. a and Figs S9a and S10a UCDP_models.R Generates Table S4, cols. c-d and Figs S9 c-d and S10 c-d AdditionalModels.R Generates Table S4, col. b, e-g and Figs S9 b, e-g and S10 b, e-g Generates Table S5, cols. a-f and Figs S11 a-f and S12 a-f Generates Table S6 & Figs S11g and S12g