Weather and Agriculture: Cleaning code for LSMS-ISA and remotely sensed weather data integration project
This repository acts as the mother ship for a number of other repositories that hold replication code for papers sprining from the main project. The main project site is on OSF and has the goal of exploring a variety of issues that arise when remotely sensed weather data is integrated with socioeconomic survey data. The dependency or subsidiary repos from this repo include replication packages for:
- Michler, J.D., Josephson, A., Kilic, T., and Murray, S. (2021). "Estimating the Impact of Weather on Agriculture." World Bank Policy Research Working Paper, No. 9867.
- Michler, J.D., Josephson, A., Kilic, T., and Murray, S. (2022). "Privacy Protection, Measurement Error, and the Integration of Remote Sensing and Socioeconomic Survey Data." Journal of Development Economics 158: 102927.
- Josephson, A., Michler, J.D., Kilic, T., and Murray, S. (2024). "The Mismeasure of Weather: Using Remotely Sensed Weather in Economic Contexts."
- Agme, C., Josephson, A., Michler, J.D., Kilic, T., and Murray, S. (2024). "Variable Selection in Economic Applications of Remotely Sensed Weather Data: Evidence from the LSMS-ISA."
Because the weather data contains confidential information, it is not publically available. This means the weather code will not function, as that data is held by the World Bank. Contact Drs. Jeffrey D. Michler or Anna Josephson and they can share an intermediate - de-identified - version of the weather data for use in replicating the results.
This README was last updated on 3 September 2024.
Contributors:
- Jeffrey D. Michler [[email protected]] (Conceptualizaiton, Supervision, Visualization, Writing)
- Anna Josephson [[email protected]] (Conceptualizaiton, Supervision, Visualization, Writing)
- Talip Kilic (Conceptualization, Resources, Writing)
- Siobhan Murray (Conceptualization, Writing)
- Brian McGreal (Data curation)
- Alison Conley (Data curation)
- Emil Kee-Tui (Data curation)
- Reece Branham (Data curation)
- Rodrigo Guerra Su (Data curation)
- Jacob Taylor (Data curation)
- Kieran Douglas (Data curation)
The code in this repository is primarily for replicating the cleaning of the household LSMS-ISA data. This requires downloading this repo and the household data from the World Bank webiste. The projectdo.do
should then replicate the data cleaning process.
- The data processing and analysis requires a number of user-written
Stata programs:
weather_command
blindschemes
estout
winsor2
mdesc
distinct
The OSF project page provides more details on the data cleaning.
For the household cleaning code to run, the public use microdata must be downloaded from the World Bank Microdata Library. Furthermore, the data needs to be placed in the following folder structure:
weather_and_agriculture
├────household_data
│ └──country /* one dir for each country */
│ ├──wave /* one dir for each wave */
│ └──logs
├──weather_data
│ └──country /* one dir for each country */
│ ├──wave /* one dir for each wave */
│ └──logs
├──merged_data
│ └──country /* one dir for each country */
│ ├──wave /* one dir for each wave */
│ └──logs
├──regression_data
│ ├──country /* one dir for each country */
│ └──logs
└────results_data /* overall analysis */
├──tables
├──figures
└──logs