im doing a model selection process in R
> drop1(test, test = "Chisq",)
Single term deletions
Model:
AFOTUs ~ Lev + SM + TSN + ANPP + (Lev:TSN)
Df AIC LRT Pr(>Chi)
<none> 1455.4
SM 1 1478.6 25.2149 5.129e-07 ***
ANPP 1 1457.3 3.8631 0.04936 *
Lev:TSN 1 1458.0 4.5681 0.03257 *
Here you can see there are 5 variables but when I use drop1()
to select model I found this function can't distinguish between single and interactive variables.If a predictor is part of an interaction, it will not be dropped? So im wondering which function can deal with this situation.