Connor Rothschild
← Back to all posts
Games and Guns
August 12, 2019
Is there a connection between video games and gun violence, as Republicans suggest?
Load Packages
Load Data
Data regarding gun deaths per capita comes from the Institute for Health Metrics and Evaluation
Data regarding video game sales per capita comes from this Google Spreadsheet which was pulled from NewZoo, a gaming analytics company.
Merge and Clean Data
Next, we clean games
dataset so that Country
matches the Location
column from guns
.
There are 98 countries with full data present.
We should also create a dummy variable for each country depending on whether it is an OECD country or not.
Visualize
This allows us to plot each country in a scatterplot, with point colour corresponding to OECD status:
Finally, we can focus on only OECD countries:
To conclude, let’s add an emoji to fully capture our skepticism with the newfound argument linking video games to violence.