Hi I have a quick question about the regtermtest. Let's say I am running the following regression:
data(api)
dclus1 <- svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc)
model1 <- svyglm(api00~ relevel(both, ref = "Yes")*relevel(awards, ref="Yes") + meals, design = dclus1, family = gaussian(link='log'))
This checks to see if the interaction effect is significant
regTermTest(model1,~ relevel(both, ref = "Yes"):relevel(awards, ref="Yes") , method= "LRT"))
This checks the joint contribution of the main effects plus the interaction effect
regTermTest(model1,~ relevel(both, ref = "Yes")*relevel(awards, ref="Yes") , method= "LRT")
But lets say I want to check if the individual levels of awards is signficant. Would I do the following?
model2<- svyglm(api00~ relevel(awards, ref="Yes") , design = dclus1, family = gaussian(link='log'))
anova(model1,model2,force=TRUE)
Maybe you can do the following?
Thanks.