Skip to content

Instantly share code, notes, and snippets.

@JasonThomasData
Created June 13, 2016 00:08
Show Gist options
  • Save JasonThomasData/02371bca5f3be6963042eb833e260705 to your computer and use it in GitHub Desktop.
Save JasonThomasData/02371bca5f3be6963042eb833e260705 to your computer and use it in GitHub Desktop.
Data taken from Mother Jones' open database - http://www.motherjones.com/politics/2012/12/mass-shootings-mother-jones-full-data
Date,Victims,x,Trend,Trend formula
1996-01-01,6,1,16.23157895, =(b$21 * c2) + b$22
1997-01-01,14,2,19.32280702,...
1998-01-01,50,3,22.41403509,...
1999-01-01,91,4,25.50526316,...
2000-01-01,7,5,28.59649123,...
2001-01-01,9,6,31.6877193,...
2003-01-01,15,7,34.77894737,...
2004-01-01,12,8,37.87017544,...
2005-01-01,26,9,40.96140351,...
2006-01-01,28,10,44.0526315,...
2007-01-01,86,11,47.14385965,...
2008-01-01,42,12,50.23508772,...
2009-01-01,77,13,53.32631579,...
2010-01-01,11,14,56.41754386,...
2011-01-01,40,15,59.50877193,...
2012-01-01,140,16,62.6,...
2013-01-01,48,17,65.69122807,...
2014-01-01,46,18,68.78245614,...
2015-01-01,89,19,71.87368421,...
Slope,=slope(b2:b20,c2:c20),,
Interccept,=slope(b2:b20,c2:c20),,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment