Lab 07: Multinomial logistic regression

due Monday, November 15 at 11:59pm

Learning goals

By the end of the lab you will be able to…

Data

The data for this assignment comes from an online Ipsos survey that was conducted for the FiveThirtyEight article “Why Many Americans Don’t Vote”. You can read more about the survey design and respondents in the README of the GitHub repo for the data.

Respondents were asked a variety of questions about their political beliefs, thoughts on multiple issues, and voting behavior. We will focus on using the demographic variables and someone’s party identification to understand whether a person is a probable voter.

The variables we’ll focus on are (definitions from the codebook in data set GitHub repo):

You can read in the data directly from the GitHub repo:

voter_data <- read_csv("https://raw.githubusercontent.com/fivethirtyeight/data/master/non-voters/nonvoters_data.csv")

Note that the authors use weighting to make the final sample more representative on the US population for their article. We will not use the weighting in this assignment, so we should treat the sample as a convenience sample rather than a random sample of the population.

Conceptual questions

  1. Why do you think the authors chose to only include data from people who were eligible to vote for at least four election cycles?

  2. Let’s prepare the data for analysis and modeling.

    • The variable Q30 contains the respondent’s political party identification. Make a new variable that simplifies Q30 into four categories: “Democrat”, “Republican”, “Independent”, “Other” (“Other” also includes respondents who did not answer the question).
    • The variable voter_category identifies the respondent’s past voter behavior. Relevel the variable to make rarely/never the baseline level, followed by sporadic, then always.
  3. In the FiveThirtyEight article, the authors include visualizations of the relationship between the voter category and demographic variables such as race, age, education, etc. Select two demographic variables. For each variable, interpret the plot to describe its relationship with voter category.

  4. Fit a model using mean-centered age, race, gender, income, and education to predict voter category. Show the code used to fit the model, but do not display the model output.

  5. Should party identification be added to the model? Use a drop-in-deviance test to determine if party identification should be added to the model. Include the hypotheses in mathematical notation, the output from the test, and the conclusion in the context of the data. Then, neatly display the model you selected.

Use the model you select for the remainder of the assignment.

  1. Interpret the following coefficents in the context of the data in terms of the odds of voting sporadically versus rarely/never.

    • Interpret the intercept in the context of the data. Use actual values in the interpretation.
    • Interpret the effect of age in the context of the data.
    • Interpret the effect of party ID in the context of the data. Include discussion about which level(s) differ from the baseline.
  2. In the article, the authors write

    “Nonvoters were more likely to have lower incomes; to be young; to have lower levels of education; and to say they don’t belong to either political party, which are all traits that square with what we know about people less likely to engage with the political system.”

    Does your model support this statement? Briefly explain why or why not.

  3. Let’s use the model to predict the voting categories. Obtain the predicted voter category for each observation.

    • Create a table of the actual versus predicted voter categories and a visualization of the association between the two.
    • How well did the model perform? Briefly assess the model performance using 2 - 3 observations from the table and/or visualization to support your response.

Submission

There should only be one submission per team on Gradescope.

Grading (50 pts)

Component Points
Ex 1 - 8 45
Workflow & formatting 5

Grading notes: