Site icon R-bloggers

Age-Period-Cohort models and the decline of violence

[This article was first published on Diego Valle's Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Ever since the end of the Mexican Revolution and the Cristero War violence in Mexico inched down in fits and starts from a high of about 60 homicides per 100,000 people to its lowest level sometime during the middle of the last decade (there’s some uncertainty about the number of homicides in 2007). Then, the drug war happened and the homicide rate shot straight up.

After reading The Better Angels of Our Nature: Why Violence Has Declined, by Steven Pinker, and looking at reviews of the literature on homicide decline in Europe, it seemed to me as if some of the posited reasons for the decline of violence would involve strong cohort effectseach generation successively becoming less and less violent. This immediately reminded me of Mexico, and so I decided to take a quick look at the data:
Each cohort group is connected by a loess line(only ages 12-60 are shown in the graph)

For a more formal analysis of the decline of violence I used homicide data from the INEGI/SINAIS at the national level from 1985 and at the state/municipality level from 1990 onwards. Since I’m interested in understanding the period before the drug war I discarded all data after 2006. As usual, there are some issues with the data:


In countries with reliable statistics on offenders most women are killed by men, so I focused on total homicide victims rather than each sex since I see no reason why Mexico should be any different. To explore the data I plotted the age-adjusted homicide rates for each state of Mexico. Since the five states with the biggest declines in homicides all lie in this contiguous area of Mexico I highlighted them in blue. 
The border states seem to follow a different dynamic than the rest of Mexico so I plotted the age-adjusted homicide rate for all municipalities whose head locality lies at least 200 km from the U.S. border:
Since we have a bunch of contiguous states which saw big declines in violence and the municipalities near the U.S. border which saw increases, I’ll build two different age-period-cohort models for each area using the Epi package (tough I could also use a multilevel model). Prior to building the age-period-cohort model I’ll visualize the four classic plots for the two areas of Mexico I mentioned.

The southern states:
Municipalities 200 km from the border:
  1. The top left plot shows the rate versus the age with each birth cohort group connected by a quadratic polynomial regression line. You can see a very clear pattern of each cohort being less violet in the southern states but not in the municipalities near the U.S. border.
  2. The top right plot shows the rate versus the age, with each period connected. You can see that children have low homicide rates and young adults the highest. Near the U.S. border there is a drop in homicide rates after 40 years of age (but remember the cohort effects from the first plot!).
  3. The bottom left plot shows the rate versus the period, with each age group connected. You can see that the decrease in violence occurred primarily among the ages with the highest rates in the southern states but not so much near the U.S. border.
  4. The bottom right plot shows the rate versus the cohort, with the each age group connected. You can see how in the southern states each cohort suffered less violence than the rest, though not so much near the U.S. border (but keep in mind period effects!).

After looking at those plots it seems appropriate to fit an Age-Period-Cohort model to separate the effects of each component:


In the model, I used the 1970 cohort as reference for the age and cohort effect, and 2003 as the period reference since that was the year before the expiration of the assault weapon ban, Chapo Guzmán killing the brother of the Juárez Cartel leader, La Barbie in Nuevo Laredo and the whole La Familia Michoacana thing.

From the chart we can see that the age pattern for homicides follows that found in other countries (Fig 3.3 page 41), once we control for cohort and period effects, with the highest risk of being a homicide victim for people in their early 20s. Interestingly, near the border people remain much much violent throughout their lives. Also note how much more violent southern Mexico was compared to the U.S. border. Infants living in the south where at a higher risk of dying of murder than people in their 20s near the U.S. border (controling for cohort and period effects). This probably because people in their 20s commit infanticide and also kill their peers in their 20s.

Looking at the cohort effect there was a big decrease in violence by each successive generation. The period effect shows a rise in the early 90s which might have been related to the land reform enacted about that time (this is pure speculation) and the heightned importance of the Mexico-US border for traficking cocaine in the 90s, the model also shows a rise after 2003 which is very likely related to the whole breakup of the Federation and the rise of La Familia Michoacana as stated previously, though keep in mind its size compared to the cohort effect (they are on the same scale)

Note: I’m more interested in explaining the decline of violence in Mexico rather than predicting the drug war, so the age specific rates for the 1970 cohort are wrong after age 38 since 2008 was the year homicide rates shot up because of the drug war.

One problem with looking at homicide victims is that we ignore data on those who committed the homicides. But in Mexico there is very little data on those who commit murder, in 1930 the government detained about 6,500 presumed murderers, the same number as in 2011! But in other parts of the world those who commit homicide have similar ages to their victims, in fact they are usually acquaintances (with the obvious exception of infants).

There is also the possibility that rather than a reduction in violence the decrease in homicides could reflect better medical treatment, but Mexico also saw a reduction in all criminal activity:
The trendline was adjusted for seasonal effects and length of month
There is also the fact that the homicide rate in Mexico followed the homicide rates of Canada and the U.S. until the drug war. The consensus is that in Canada and the U.S. people really became less violent.
Data Sources: INEGI, FBI, and Statistics Canada (Criminal Justice)
So my best guess is that each cohort of Mexicans really was less violent than the previous ones. You certainly didn’t want to mess with someone born around the time of the revolution, but with each passing generation, for reasons still unknown, people became less and less violent until the late 80s and early 90s saw the birth of the mirrrey generation: people more interested in aping the clothing style of uncivilized proles, with their garrish logos and shirts with legible clothing, than in being violent.
The real tragedy is that what was supposed to be the least violent generation in recorded history is now the protagonist of the drug war:
Each cohort group is connected by a loess line(only ages 12-60 are shown in the graph)

P.S. You can download the code and data from GitHub

To leave a comment for the author, please follow the link and comment on their blog: Diego Valle's Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.