Temperature variations and domestic violence
About this website
This website gathers all the code used in my project “Temperature variations and domestic violence” in Mexico City. For more info about the paper, check out my personal website.
Each page on this website corresponds to a R script that prepares the data and runs some analyses. They are grouped in four sections, accessed via the navigation bar on top.
This website is still work in progress
Prepare the data
I use three main types of data in this project: neighborhoods and their characteristics, weather data, and domestic violence data. There are many different sources of data for each, and in this section, I show how I process them.
Merge and describe the data
I then join all these data together into a panel. In this section, I also describe and plot these data. Finally, I document some raw associations between temperature and domestic violence.
Analyses
Runs the regressions and analyses that are featured in the paper.
Appendix and Discussions
This section gathers different scripts in which I run side analyses, comment on various topics… Some is used in the main body of the paper, some in the appendix.