ANES Project

Author

Brad Jones

Partisanship, values, race, and attitudes about undocumented immigrants

Warning: you are required to use your voice to inform your writing. I am expecting creativity and not a whole bunch of submissions that are identical to mine (or to other students). Social science involves creativity, decisions, and analysis. This is the objective of this assignment. What do you learn? What can you teach me? Saying this, here is my submission.

Reading in data, subsetting for the years I choose to use, and creating a 4-level race factor.

ts="https://raw.githubusercontent.com/mightyjoemoon/POL51/main/ANES_codedforclass.csv"

ts<-read_csv(url(ts))

ts <- ts %>% filter(Year >= 2004)

#Create white/non-white factor
ts <- ts %>%
  mutate(
    W_NW = factor(
      case_when(
        Race == 1 ~ "White",
        Race > 1 ~ "Nonwhite"
      ),
      levels = c("White", "Nonwhite")
    )
  )

#Create race factor 
ts <- ts %>%
  mutate(
    Race4 = factor(
      case_when(
        Race == 1 ~ "White",
        Race == 2 ~ "Black",
        Race == 3 ~ "Other",
        Race == 5 ~ "Latino",
        Race == 4 ~ "Other",
        Race == 6 ~ "Other", 
        Race == 7 ~ "Other"
      ),
      levels = c("White", "Black", "Latino", "Other")
    )
  )
#Make baseline category "other"

#ts <- ts %>%
#  mutate(Race4 = fct_relevel(Race4, "Other"))
#table(ts$Race4)
#summary(ts)

Part 2: The student becomes a social scientist

For my analysis, I propose a model treating evaluations of undocumented immigrants (using the ANES feeling thermometer) as function of the moral traditionalism and authoritarianism scales, as well as education level and race of the survey respondent. In addition to these independent variables, I will include a three-level factor variable corresponding to party affiliation of the respondent. I will estimate the base model using the survey years corresponding to each Presidential election from 2004 to 2024.

The proposed model is thus:

\[ \begin{aligned} \hat{Undocumented~ratings} &= \beta_0 + \beta_1*Independent + \beta_2*Republican + \beta_3*Moral~traditionalism + \\ & \beta_4*Authoritarianism + \beta_5*Black + \beta_6*Latino + \beta_7*Other + \beta_8*Education \end{aligned} \]

Research expectations

Regarding the relationship between ratings of undocumented immigrants and partisanship, I expect that Democrat ratings to be significantly more positive than Republican ratings. Certainly in the past 30 years, the political party most associated with restrictionist policies aimed at immigration has been the Republican party. As such, I expect Republican identifiers to reflect this in their ratings of the undocumented: ratings should be lower relative to Democrats and Independents.

Regarding the relationship between moral traditionalism and undocumented ratings, I expect high traditionalists to rate undocumented immigrants significantly lower that individuals scoring less high on this scale. Immigrants, especially undocumented immigrants, have commonly been framed in narratives of threat, including cultural threat. As such, those high in moral traditionalism may see undocumented immigrants as a significant cultural threat, thus leading to lower evaluations. This prediction is consistent with findings by Branton et. al. (2011).

I am not including my expectations for authoritarianism, but if I were, I would put that paragraph here.

Lastly, with respect to the relationship between the demographic factors of race and education, I expect white respondents to elicit lower ratings of undocumented individuals compared to non-whites. Importantly, I expect Latino respondents to elicit significantly higher ratings than other racial groups: undocumented immigrants have been closely tied to Latinos. Theories of in-group favorability would predict that Latinos would most highly rate undocumented individuals. Regarding education, I expect lower-educated respondents to be less favorable to undocumented immigrants compared to more highly educated respondents. The basis of this expectation comes from the observation that lower educated individuals may believe undocumented immigrants pose economic threats to their well-being (Berg 2009).

Regression estimates

I estimated my proposed model using linear regression and the results are reported in Table 1. With respect to party, we see strong, clear differences over levels of party identification. Republicans rate undocumented immigrants about 14 points lower than Democrats; Independents rate undocumented immigrants about 7 points lower than Democrats. In turn, Independent ratings are about 7 points higher than Republicans. Given the large t-values for these coefficients, we can conclude partisanship is significantly related to ratings of the undocumented. We also find support for our expectations regarding race. Latino respondents, on average, rate undocumented individuals nearly 17 points higher than do white respondents (who serve as the baseline category). Similarly, black respondents and other non-white respondents offer ratings significantly higher than whites.

myreg1<-lm(Undoc_Therm ~ PID3 + MoralTrad_Scale + Authoritarian_Scale + Race4 + Education4, data=ts, weight=Weight)

modelsummary(
  myreg1,
  title = "Table 1. Factors predicting undocumented immigrant ratings",
  estimate = "{estimate}{stars} ({std.error})   {statistic}",
  output = "gt",
  statistic = NULL
)
Table 1. Factors predicting undocumented immigrant ratings
(1)
(Intercept) 57.632*** (0.815) 70.705
PID3Ind. -6.712*** (0.566) -11.860
PID3Rep. -13.892*** (0.420) -33.110
MoralTrad_Scale -1.898*** (0.092) -20.730
Authoritarian_Scale -1.288*** (0.074) -17.445
Race4Black 8.951*** (0.572) 15.638
Race4Latino 17.275*** (0.533) 32.392
Race4Other 2.744*** (0.642) 4.278
Education4 1.358*** (0.196) 6.918
Num.Obs. 22443
R2 0.211
R2 Adj. 0.211
AIC 215330.8
BIC 215411.0
Log.Lik. -107655.398
RMSE 24.99

In Figure 1, I plot the regression results for party and race. We can easily visualize clear and significant racial differences: Latinos are significantly higher in their ratings than all other groups. Further, there is a clear partisanship gap: Democrat ratings (shown in blue) are substantially higher than both Independent (gray), and especially, Republican ratings (red). Among Republicans, it is only Latino Republicans who do not rate undocumented immigrants as unfavorable.

  plot_model(myreg1, type = "pred", terms = c("Race4", "PID3"), ci.lvl = .95, dodge = 0, 
             title="Figure 1. Partisanship and race strongly predict ratings of undocumented \nimmigrants: Democrats and nonwhite respondents, especially Latinos, \noffer significantly higher ratings than Republicans and whites", 
             axis.title=c("Race", "Rating of undocumented immigrants"), 
             colors=c("grey", "blue", "red4"),  
             legend.title = "Party")  + 
  geom_line()  + 
  theme_minimal() #+

   #theme(aspect.ratio = 1.5,
         #plot.title = element_text(size=10))

With respect to moral traditionalism, the regression results are consistent with expectations. Individuals who believe traditional family values should be stressed and that views about what constitutes morality should never be changed (i.e. high moral traditionalists) offer significantly lower ratings of undocumented immigrants. For each one-point increase in the moral traditionalism scale, ratings of the undocumented drop by almost 2 points. Given the scale ranges from 0 to 8, the full range of the relationship going from lowest on the scale (0) to highest on the scale (8) is about 16 points, a sizable difference on a 101-point scale. The t of \(-20.7\) shows statistical significance at any conventional level.

Regarding authoritarianism, the ANES scale reflects underlying attitudes about conformity and deference to authority. As such, high scores reflect higher authoritarian values and low scores reflect lower authoritarian values. We clearly see that authoritarianism is significantly related to ratings of undocumented immigrants: for a one-point increase on this scale (reflecting increasing endorsement of authoritarian values), ratings of undocumented immigrants declines by about 1.3 points. This relationship is significantly different from 0. Figure 2 displays the regression results for these scales.

This figure gives the predicted values for the moral-traditionalism scale (left panel) and the authoritarianism scale (right panel). Both scales show a sharp, negative association to ratings of undocumented immigrants. High moral traditionalists and high authoritarians rate undocumented individuals significantly lower than lower traditionalists/authoritarians.

Finally, consider the role of education. The model shows–consistent with expectations–that lower educated respondents rate undocumented immigrants significantly lower than higher educated respondents.

Time and ratings

A natural question to ask is how have undocumented ratings moved or changed over time? Given we have data on these ratings to 2004, we can assess change over time. This question makes sense. While the issue of undocumented immigration took central stage in the early 2000s, with the emergence of the Trump era in 2016, the heated rhetoric aimed at immigrants seemed to increase as well, given the traction Trump received on the immigration issue. To assess this, we included in the model shown in Table 1, a factor-level variable for survey year as well as an interaction between survey year and party affiliation. This interaction permits us to assess how evaluations change with respect to time and party. The regression results are found in Table 2. The conclusions regarding race, moral traditionalism, authoritarianism, and education in this model are consistent with those found in Table 1. Of most interest here is the relationship between partisanship, time, and evaluations. Because inclusion of these terms in the model results in many more coefficients, it is much easier to assess the substantive results using plots.

myreg2 <- lm(Undoc_Therm ~ PID3 +  MoralTrad_Scale +Authoritarian_Scale + Race4 + Education4 + as.factor(Year)*PID3, data=ts, weight=Weight)


modelsummary(
  myreg2,
  title = "Table 2. Factors predicting undocumented immigrant ratings by time",
  estimate = "{estimate}{stars} ({std.error})   {statistic}",
  output = "gt",
  statistic = NULL
)
Table 2. Factors predicting undocumented immigrant ratings by time
(1)
(Intercept) 51.762*** (1.417) 36.533
PID3Ind. -3.277 (3.072) -1.067
PID3Rep. -5.121** (1.733) -2.955
MoralTrad_Scale -1.730*** (0.091) -19.036
Authoritarian_Scale -1.055*** (0.074) -14.284
Race4Black 8.348*** (0.567) 14.736
Race4Latino 16.636*** (0.528) 31.491
Race4Other 1.872** (0.636) 2.944
Education4 1.220*** (0.194) 6.279
as.factor(Year)2008 -0.844 (1.425) -0.592
as.factor(Year)2012 -1.143 (1.283) -0.891
as.factor(Year)2016 4.244** (1.332) 3.187
as.factor(Year)2020 11.371*** (1.264) 8.995
as.factor(Year)2024 6.929*** (1.303) 5.318
PID3Ind. × as.factor(Year)2008 1.683 (3.592) 0.469
PID3Rep. × as.factor(Year)2008 -3.651+ (2.103) -1.736
PID3Ind. × as.factor(Year)2012 -2.147 (3.244) -0.662
PID3Rep. × as.factor(Year)2012 -5.207** (1.875) -2.776
PID3Ind. × as.factor(Year)2016 -4.989 (3.331) -1.498
PID3Rep. × as.factor(Year)2016 -10.884*** (1.948) -5.589
PID3Ind. × as.factor(Year)2020 -5.044 (3.226) -1.564
PID3Rep. × as.factor(Year)2020 -12.094*** (1.840) -6.572
PID3Ind. × as.factor(Year)2024 -4.494 (3.460) -1.299
PID3Rep. × as.factor(Year)2024 -14.371*** (1.896) -7.580
Num.Obs. 22443
R2 0.232
R2 Adj. 0.231
AIC 214756.1
BIC 214956.6
Log.Lik. -107353.069
RMSE 24.69

In Figure 3 we see strong evidence of a partisanship gap in ratings, a result consistent with the prior model; however, we seem to see evidence of widening gap from 2016 onward. Democrats consistently offer more positive ratings of undocumented immigrants than Republicans (or Independents), but this gap widens significantly with the emergence of the Trump era in 2016. In 2004, the partisan gap was about 5 points; for 2008, the gap is 9 points; for 2012, the gap is 10 points. In 2016, the partisan gap is 15 points, in 2020 it is 16 points, and in 2024, its 20 points. Hence the average gap in the early period (2004-2008) was 8 points; from 2016 onward, the average gap more than doubled to 17 points.

What this is suggestive of is that when partisan rhetoric on the immigration issue became more heated during the Trump Era, attitudes about undocumented immigrants became more polarized. This might imply that partisans separated more widely on the issue in this later period, compared to the earlier period. In turn, ratings become seemingly more polarized. Interestingly, the “movement” in ratings is seen primarily among Democrats. Republicans did not appreciably “get more negative” about undocumented immigrants; rather, Democrats’ favorable ratings seemed to increase.

References

Branton, Regina, Erin C. Cassese, Bradford S. Jones, and Chad Westerland. 2011. “All Along the Watchtower: Acculturation Fear, Anti-Latino Affect, and Immigration.” The Journal of Politics 73 (3): 664–79.

Berg, J. A. (2009). White Public Opinion toward Undocumented Immigrants: Threat and Interpersonal Environment. Sociological Perspectives, 52(1), 39-58. https://doi.org/10.1525/sop.2009.52.1.39

Iceland, John, Eric Silver, and Ibrahim Enes Atac. 2026. “Moral Intuitions and Support for Immigration.” Social Science Quarterly 107 (2): e70146. doi.org.