7: The ANES
Data Wrangling and Visualization
Data Work
Browse Bartels (2000) - βPartisanship and Voting Behavior, 1952-1996β. Using the Cumulative American National Election Studies (ANES) file, replicate both parts of Figure 1.
- Note: you can get very close on the top half of figure 1. The bottom half, however, will look a little different in the early years due to Bartels having access to a different version of the ANES than is currently publicly available.
Extend the analysis to include recent years as well.
Extend the analysis to 2024, using the 2024 ANES file. (This will require using the 2024 file in conjunction with the cumulative file.)
Create figures that include midterm election years as well.
Original Work: explore the codebook for the ANES. Find two interesting variables and create compelling univariate graphs to illustrate their central tendency, distribution, and spread.
Bonus: Replicate Figure 2 from Bartels as well; add in recent years and 2024.
Submission
Your completed assignment should link a GitHub repository with a copy of your .R script file(s) (with comments, etc) used to code the variables and do the analysis, a .quarto file that contains your writeup and figures, and a .PDF file with all of your (properly labeled and attractively laid out) tables/figures.
In your writeup, address the following questions:
Where did you encounter problems with this replication? Was there anything that was particularly tricky?
How would you interpret (explain) what Bartels found in figures 1 & 2?
Has anything changed since 1996 that would alter the substantive takeaway points in their findings?
Does anything change about the analysis in a substantive way when you include midterm election years?
AI use is allowed on this and every problem set that is graded check/no check in this class. You should disclose any AI use as a matter of standard professional ethics, but you will not be evaluated on whether or not you used AI.
I encourage you, however, to use AI intelligently: use it like a teaching assistant to help you understand the material, not as a bot to automatically solve the problem set for you. Remember that you will not have access to a chatbot during in-class exams, so the problem sets are your chance to practice.