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 the paper, check out my personal website.

Navigation

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.

Render time

The whole project took 397.4 min to render.

file last_render render_time
A1_ageb 2025-07-26 09:41:06 12 sec
A2_colonias 2025-07-26 09:41:19 8 sec
B1_weather_redmet 2025-07-26 10:30:09 48.8 min
B2_pollution_rama 2025-07-26 12:43:49 133.6 min
B3_precipitation_conagua 2025-07-27 06:52:58 107 sec
B4_weather_join_min_max_count 2025-07-26 22:25:05 4.4 min
B5_plots_weather 2025-07-26 22:26:03 53 sec
B6_plots_pollution 2025-07-26 22:26:48 40 sec
C1_pgj_crimes 2025-07-26 22:27:50 57 sec
C3_locatel 2025-07-26 22:28:29 34 sec
F_merge_data_and_count 2025-07-26 22:30:19 106 sec
G_describe_data 2025-07-26 22:30:49 25 sec
H_preliminary_associations 2025-07-26 22:31:25 31 sec
reg_A_calls 2025-07-26 23:54:59 2.5 min
reg_A_dynamic 2025-07-26 23:52:24 10.6 min
reg_A_linear 2025-07-26 23:21:38 6.7 min
reg_A_non_linear 2025-07-26 23:41:43 20 min
reg_B_sensitivity 2025-07-27 00:04:27 9.4 min
reg_C_census 2025-07-27 01:34:22 33 min
reg_C_income 2025-07-27 01:01:11 56.6 min
reg_D_pollution 2025-07-27 01:41:59 7.5 min
reg_D_reporting_bias 2025-07-27 01:47:14 5.2 min
reg_D_types_of_crime 2025-07-27 01:55:17 8 min
z_discussion_estimation 2025-07-26 23:09:36 38.1 min
z_fixed_effects 2025-07-26 23:10:51 70 sec
z_reporting_delay 2025-07-26 23:14:51 3.9 min