Publications by Jason Timm
Political ideology & New Mexico’s 53rd State Legislature
Ideal points estimation Legislators in political space Legislation in 2D political space Political space and marijuana A quick geographical perspective Political ideology in NMSL53 Summary References This is the second in a series of posts investigating voting patterns in New Mexico’s 53rd State Legislature (NMSL53). In this post, we detail th...
13942 sym R (9950 sym/24 pcs) 14 img 4 tbl
Twitter, political ideology & the 115th US Senate
Congressional data sources Scraping tweets via rtweet Twitter followers & political ideology Shared tweets as ideology Summary Postscript: News media ideologies Resources In this post, we consider some fairly recent studies conducted by folks at the Washington Post and the Pew Research Center that investigate the relationship between political i...
11827 sym R (7596 sym/23 pcs) 14 img
genre, text classification & naive bayes
Building a historical, genre-based corpus Building a Naive Bayes classifier Model assessment & confusion matrix Summary In this short post, we outline a Naive Bayes (NB) approach to genre-based text classification. First, we introduce & describe a corpus derived from Google News’ RSS feed, which includes source and genre information. We then t...
4967 sym R (4658 sym/15 pcs) 6 img
Some perspectives on Xochitl Torres Small’s win in CD NM-02
A brief intro to nmelectiondatr CD NM-02: an overview A look at Pearce-Xochitl precincts Straight- & split-ticket voting in NM-02 Summary In this post, we consider some different precinct-level perspectives on Xochitl Torres Small’s surprising win over Yvette Herrell in New Mexico’s 2nd Congressional District (NM-02) in the 2018 general elec...
11092 sym R (10417 sym/17 pcs) 12 img 7 tbl
historical word embeddings & lexical semantic change
Google n-gram data Nearest-neighbors Procrustes, PCA & visualizing semantic change Detecting semantic change Summary References I have developed a Git Hub guide that demonstrates a simple workflow for sampling Google n-gram data and building historical word embeddings with the aim of investigating lexical semantic change. Here, we build on this ...
7555 sym R (4826 sym/20 pcs) 12 img 1 tbl
Referring to POTUS on Twitter: a stance-based perspective on variation in the 116th House
A very brief introduction Some open source data sets Extracting referring expressions to 45 Party-level stance towards 45 House Rep stance & 2016 presidential vote margins Prevalence of 45 reference Summary References In this post, we investigate how (& how often) members of the 116th House of Representatives refer to the 45th president of the U...
13767 sym R (8775 sym/22 pcs) 12 img 4 tbl
The politics of New Mexico: a brief historical-visual account
New Mexico demographics via tidycensus 2016 Presidential Election Presidential elections in New Mexico historically New Mexico as bellwether? Congressional delegation historically New Mexico State Government Summary In this post, we piece together a brief political history of New Mexico using a host of data sources, including Wikipedia, the US C...
11914 sym R (17602 sym/24 pcs) 20 img 6 tbl
front-line house democrats: a quick guide
House & presidential election returns Trump margins in 2016 Flipped House Districts from 2016 to 2018 The 31 House Democrats in Trump-supportive districts A quick geographical perspective The 13 House Democrats in solid Trump districts Voting patterns in presidential elections Voting patterns for the 31 Trump-House Dem districts The 5 House Democ...
4137 sym R (6263 sym/17 pcs) 4 img 10 tbl
Twitter in collage: a year in the life of a freshman Congresswoman
Introduction A super simple post that summarizes R-based methods for visual summary & collage-building using image attachments on Twitter. In the process, a bit of a photo homage to Congresswoman Xochitl Torres Small in her first year representing New Mexico’s 2nd district. if (!require("pacman")) install.packages("pacman") pacman::p_load(tidyv...
3601 sym R (2572 sym/7 pcs) 8 img 1 tbl
Modeling roll call voting behavior in the House of Representatives
Thoughts initial Data sets Modeling political ideology in the 116th House A final thought References Thoughts initial A brief (and copycat) go at modeling roll call voting behavior in the US House of Representatives using (1) constituency demographics, (2) house member party affiliation, and (3) house member characteristics. This post is based d...
5480 sym R (3806 sym/10 pcs) 2 img 3 tbl