Skip to main content

Is the House Member from My District Voting in Accordance with My Ideology? Is S/He a Leader or a Follower?

With election time coming up soon (Nov. 8th!), and with the headlines obsessed with the presidential race, I wanted to take a moment to focus on down ballot races--in particular, congressional district races for the House of Representatives.

I have zero interest in telling anyone how to vote, but I would like to help any interested parties figure out where the incumbent in their district stands in terms of ideology and overall congressional leadership relative to other House members. Knowing this information might, at the very least, help a given voter to know whether the incumbent in their district is performing they way they want them to perform.

I'm also going to use this as an opportunity to demonstrate how to use R (a great tool for doing an analysis like this) to determine where the incumbent in your congressional district stands relative to other House members. If you follow the steps outlined below (and if you download R and R Studio, which is free by the way), you should be able to make a nice scatter plot like this one:




In the above example I highlight Rep. Dold, the Republican incumbent from Illinois' 10th Congressional District, in order to compare him with other House members. It seems pretty clear that Dold is not only a moderate/centrist Republican (one that has also not endorsed Republican presidential nominee Donald Trump, by the way), he also, based on his legislative activity is more of a leader compared to other House members (leadership is based on cosponsorship of bills--more cosponsors on the bills you write = more leadership).

How to Do It

The great thing about living in an online world is that if you want to ask a given question that requires data in order to answer it, you can easily find a reputable source of that data with very little effort. For our purposes I'm using the data on House members' ideology and leadership scores provided by www.govtrack.us.*

The code I used to upload the data and then make the above scatter plot is shown below along with instructions. You can click on the image to enlarge it if it's hard to read.


If you have any questions, run into any problems, or simply don't care to do any of the work yourself, just leave a comment below and I'll do my best to respond in a timely fashion.

Happy coding, and make sure you vote!

**********
Update:  I made an interactive graph, too! 

---------------------------------------------------------------------------------------

*The fine people at GovTrack have a great plot like the one above, along with an interactive one; however, they only provide code for Python users rather than R users.

Comments

Popular posts from this blog

A Network Analysis of Foreign Aid Commitments

International Relations scholars often talk about the "diffusion" of norms, behaviors, security worries, etc. throughout the international system. Foreign aid policy is one such norm -- one that developed, democratic countries often are peer-pressured into sharing. But which countries lead the way in terms of aid commitments? Why Network Analysis? The study of networks in the social sciences has largely been restricted to sociology; however, more recently, other fields such as political science (international relations in particular) have adopted network science as a tool in the study of social phenomena. Networks provide a visually intuitive graphical representation of the multiple connections among numerous actors. Aside from being a visually appealing representation of a network of relationships, network analysis of the international system helps to bring to light (and also account for) the fact that international politics is inherently multilateral . Most analyses in...

A Sentiment Analysis of President Trump's Inaugural Address

The day has come and gone on this 20th of January in 2017. Donald Trump has been sworn in as the 45th President of the United States, and like his predecessors, Trump gave an inaugural address during today's ceremony. Lots of pundits, of course, have spent today closely analyzing, scrutinizing, praising, and whatever-else-ing Trump's speech. Like everyone of these pundits, I have personal thoughts about the events that have transpired today as well, but, rather than simply contribute to the discordant  cacophony of punditry a contrived opinion of my own, I'm choosing  to do something more constructive (or at least less politically volatile ) in an effort to offer something of novel import to discussion about President Trump's address. Rather than qualitatively sift through every word and nuance of Trump's inaugural address, I'll do something political science-y: use some textual analysis techniques to leverage quantifiable insights from Trump's speech. The...

What Factors Explain Variation in Median Household Income (Part II)

As promised, I've completed further analysis of the impact of various factors on median household income at the metropolitan area level, the results of which are displayed and discussed below. Rather than focus on median household income in general, I've gone a step further with this analysis by looking at variation in median household income by income tier -- e.g., lower income, middle income, and upper income tiers. The results are interesting (at least I think so...), and they arguably have significance for public policy. Also, if you don't care for all the glorious (ok...boring) details in the following analysis, just scroll on down to the conclusion. In my previous post I alluded to what I viewed as a misguided hyper-focus on security, crime, and undocumented immigration in this current presidential election season (most notably because of the rhetoric of the Republican nominee) that has distracted from other important social and economic issues. Now, I certainly thi...