I am trying to create two linear regression models and then use anova() to compare them. My second model has NAs which I cannot seem to omit correctly.
m2 <- lm(Lab19 ~ EthnicMinorities + Ages18to44 + c11Degree, data=df1, na.action=na.omit)
I tried this but when I use summary(m2) it says 59 observations deleted due to missingness.
This also means when I try to use anova(m1, m2) it says models were not all fitted to the same size of dataset presumably because of the selected observations in m2.
Can anyone help please