*************************** The zipped folder contains three subfolders: -analysis data -code -raw data *************************** *************************** Code folder *************************** Software: scripts written for Stata 16.1 and R version 4.0.1 Instructions: - Note: must change cd / wd at the top of each script before it can be run. Set to the location of the replication folder on your machine. - examples provided - (0) run "0 - merge survey and spatial data.do" in Stata - optional step; data have already been merged - uses .dta files for different survey forms (alternate csvs provided as well), and geospatial output tables to produce datasets for analysis - produces datasets in the "analysis data" folder, in both .csv and .dta formats (stata version 13 .dta) - (1) run "analyses main text.do" in Stata - uses the .dta files in "analysis data", but .csv files could be easily loaded instead - (2) run "analyses appendix.do" in Stata - uses the .dta files in "analysis data", but .csv files could be easily loaded instead - also uses some of the data files called on in step (0) - (3) run "alternative land cover analysis.R" in R for our analysis using Callaway and Sant'Anna's (2020) did method - uses the .dta files in "analysis data", but the .csv file could be easily loaded instead The .do files will create folders to store figures and results tables from the main text and appendix *************************** *************************** Data folders *************************** In the "analysis data" folder: - "land_cover_analysis.dta" is the data used in our land cover analysis - "livelihood_analysis.dta" is the data used in our livelihood analysis In the "raw data" folder: - .dta files (and alternative .csv files) for the various surveys we conducted - a few of these are also used in the appendix analyses (step 2 in the code described above) - tables of the geospatial output we use in this analysis - see readme within folder for more details - VariableDictionaries_dta_data.txt is a plain txt document with descriptions of variables and codes for the data files. This information is also embedded in the .dta files. - code is written assuming raw data are stored in particular folders; moving raw data will prevent code from running properly