We will do a brief investigation on the association between income inequality and vote share for a specific party. Does greater income inequality lead to voters favoring a certain party?
The metro-level election data began with county-level data and require a cross-walk to convert it to metro-level data. There are - multiple counties to a metro area, so we aggregated counties to the metro level. If you are interested in doing this yourself, you’ll need a metro-to-county cross walk or CBSA to county crosswalk
Link the national level datasets together. Plot a figure that shows how income inequality and vote share for either the Democrats or Republicans change between the years 2000-2016. (Hint: You will have to create a new variable for vote share).
-Hint 1: There is only voting data for national election years (2000, 2004, 2008, etc . .). This creates a problem with you try to plot the data. See how others deal with this using na.omit on stackoverflow
-Hint 2: For the voting data, it is useful to combine geom_line with geom_point. Why? `geom_point’ will show on the figure which years you have data for.
Are there patterns over this time period between inequality and vote share?
Estimate the association between income inequality and vote share using linear regression. The outcome varible should be vote share (of either party) and the indepdent variable is top 1% share. Do a series of regressions, where you begin to control for metro-level variables.
How does the intial regression between vote share and income equality look like? What happens when you add controls? Based on these results, what can you infer?