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

Immigration, Islam, and Social Media: The Latest Round of Research (Spring 2016)

With my journey through grad school continuing, I've successfully completed three research papers this semester for my proseminars on international politics, political modernization, and congressional politics. The fact that I enjoyed each class and conducting research for each proves just how much of a nerd I really am! This latest round of papers I've completed encompass a variety of topics. In the first, I explore the relationship between foreign aid and immigration: is increasing foreign aid to a given country a viable strategy for curbing inflows of migrants? If so, foreign aid can serve as a valuable tool for policymakers who have to contend with constituent demands that immigration be reduced. Simultaneously, because foreign aid, in theory, would reduce immigration by improving prospects for employment and ensuring more secure household incomes in other countries, aid can be a more successful long-term strategy for reducing immigration since individuals are motivated t

World Bank Education Programs and Democratic Transition

Among the various topics that I'm currently researching, the relationship between education and democracy is one that I find particularly interesting. Even though the relationship between education and democratization has been regarded as a quintessentially important one, only recently have political scholars begun to empirically examine this relationship. The pdf file I've linked below is a recent research paper I completed for a proseminar in comparative politics in which I attempt to contribute to the existing discussion on the relationship between education and democracy. I'd be happy to answer any questions regarding my findings or the data I used. Enjoy! The Impact of World Bank Education Programs on Democratic Transition