For W 9/6

Let's review the linear model with an example.

DATAFRAME: ANES 2012

DV: Favorability to Democratic Party (ft_dem)

IVs: Political view (libcpre_self)
Attitude toward DACA (immig_citizen) * recoded
Attitude toward affirmative action (aa_uni) * recoded
Religiosity (relig_import)
Gender (gender_respondent)

RECODES
immig_citizenr<-ifelse(immig_citizen==1,1,0)
aa_unir<-ifelse(aa_uni==1,1,0)

MODEL
summary(lm(ft_dem~libcpre_self+immig_citizenr+aa_unir+relig_import+gender_respondent))

We'll interpret the results. Next, try to replicate the model with the ANES 2016 dataframe. We'll discuss the results. Then we'll review model specification.