I'm taking a stats class, and we're working in R and doing a bunch of different types of regression. Where I'm having issues is that we're doing an F-test on nested models (or a partial F-test, I think?)
#Create the complete model
fit_complete <- lm(wage_growth ~ unemployment + gdp + unemployment:gdp + I(unemployment^2) + I(gdp^2), data=economic_subset)
Create the reduced model
fit_reduced <- lm(wage_growth ~ unemployment + gdp + unemployment:gdp, data=economic_subset)
Perform the F-test
anova(fit_complete, fit_reduced)
So here's what I'm wondering: my alpha is 0.05, and the p-value is clearly lower than that, so I can reject the null, so the beta for unemployment^2 and/or gdp^2. When I did ANOVAs in my biostats class with treatment groups, we'd run post hoc tests to see which of the groups differed from each other. But for the life of me, I can't figure out how to do that here.
Do I even need to do it here? Would I just include both terms in my final model? Or do I just need to run additional anovas where I only remove one term each time rather than both?
