Replication Code for Assessing Land Use Change Trajectories following Food Insecurity Shocks in 25 Low- and Middle-Income Countries
Authors/Creators
Description
Replication code for the analysis performed in Assessing Land Use Change Trajectories following Food Insecurity Shocks in 25 Low- and Middle-Income Countries
fiExpand.csv provides a long panel dataset (i.e. each unit-time has its own row) to allow for matching and regression analysis. Data has already been extracted and coallated from raster to the second level administrative units, which are the unit of analysis in this study.
Numbered R scripts walk through the steps needed to run analyses performed for this study, including linear regressions, event studies, and the IV-inspired analysis of food insecurity drivers. 1_Matching reads in fiExpand.csv and uses the MatchIt R package to produce variable matching for all data, and for data split by urbanization level. 2_Regression_checks.R the distribution of the residuals and calculates outliers using leverage statistics. These outliers are saved to csvs, also included above in the outliers_csvs.zip archive. 3_fi_event_study.R runs the event study analyses on the matched datasets and produces the event study plots (Figure 3 and Figure 5). 4_fi_regressions.R runs the regression analyses on the matched datasets and produces the regression coefficient plots (Figure 2 and Figure 4). 5_fi_IVs runs the IV-inspired analysis that shows how the drivers of food insecurity mediate the outcomes of food insecurity shocks and produces results shown in Table 1. Finally, the case studies for Guatemala, Nigeria and Mozambique are all run in separate scripts, with matching and regression analyses included in each script. Then, the combined case study figures (Figures 6 and 7) are produced in combined_casestudy_graph.R. Figure 1 is produced in python in the Figure_1.ipynb. Administrative boundaries for Figure 1 are downloaded from GAUL (https://data.amerigeoss.org/dataset/a6baab0a-66b8-47ca-84a2-3553be80a574) and filtered to countries included in the study.
Files
fiExpand.csv
Files
(277.4 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:1d5ed97fd31ab15d6211118f4d6e8228
|
11.4 kB | Download |
|
md5:26585a32883129a320f6287aa93af72f
|
13.6 kB | Download |
|
md5:180014299e004778434081a4ed735dfd
|
59.7 kB | Download |
|
md5:636da80264b0f475687baf7e3ef7ebb8
|
33.8 kB | Download |
|
md5:99ca0f743ae3158ade8a186d1ab1d440
|
46.0 kB | Download |
|
md5:71064284bd55e74432840cc8921562e8
|
10.7 kB | Download |
|
md5:4a75462d47bbda9632da2055910953b8
|
276.0 MB | Preview Download |
|
md5:324c4ce5b5da6e270dbaa26970815cf7
|
1.0 MB | Preview Download |
|
md5:12ba047c75e2c2992caa4efe162a46b8
|
44.5 kB | Download |
|
md5:504926e7f775a497f606473837ab1169
|
41.2 kB | Download |
|
md5:6495fd14e0c3d13348af25e50121b132
|
40.4 kB | Download |
|
md5:d1adb5fa2a0086f2b12a06b8dbffe3ca
|
66.2 kB | Preview Download |
Additional details
Identifiers
Dates
- Accepted
-
2025-04-09