ANES Assignment
The American National Election Study is a scientifically rigorous landmark survey that has been conducted around every presidential election since 1948. For asignment, you will analyze the 2016 ANES. In 2016, the ANES was completed in both face-to-face format (~1,100 responses) and online (~3,000). For simplicity, we will focus on the face-to-face format only. Each respondent was interviewed twice: once a few weeks before the election, and once a few weeks after. You will have a raw dataset with both waves.
You will turn in two files:
1. An .R script that cleans the data and produces your analysis, according to the framework below. This script should produce all the code necessary to complete this assignment. This file should be well-commented, meaning that you’ve written notes in the file so that someone else can understand what your code is doing. Unlike previous assignments, I will not give you a template: you must make this script from scratch!
2. A Word document of your answers to each part of the assignment.
Research question: One of the central theories in political science is that people do what’s called economic voting. That is, they vote for the candidate they expect to most benefit their own economic situation. In particular, if a voter thinks that the economy is doing well, they will vote for the incumbent’s party (so, Clinton in 2016), and if a voter thinks the economy is not doing well, they will vote for an opposition party. Often, we proxy for this using perceptions of the general state of the economy. You may hear this in campaigns as “Are you better off now than you were 4 years ago?”
You will test a version of this theory using data from the ANES 2016 survey. There are several steps to this analysis, outlined below. You should write all code necessary to answer each question. It is completely acceptable (recommended, even) to use our in-class activities, assignments, etc. to help you complete the project. This assignment is equal parts coding and interpretation.
1. Consider the research question: whether a person’s belief about whether the economy is getting better or worse affects whether they voted for Clinton in 2016. Write 1-2 paragraphs that discuss why the nature of this relationship is not obvious. A good way to do this is to state one (or more) reasons why the relationship might be positive, but also one or more reasons why it might be negative (or zero). I’m not expecting you to know all the existing theories on this – I just want you to think logically about what might be going on in the real world.
2. Time for data! Write an R code to do the following:
a. Clear the decks, programmatically import the raw ANES dataset, and load any necessary packages
b. Make a new dataframe that only has the variables you need for this assignment.
c. Make your data useable by creating and cleaning variables. To do this, look at the instructions in the final column of the codebook table at the end of this document.
3. Use the template below to create a well-formatted table of summary statistics showing, for each variable you created above, summary statistics including the variable’s minimum, maximum, mean, and median.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme