data(pratergrouped)
fit1 <- betareg(oil ~ batch1 + batch2 + batch3 + batch4 + batch5 +
batch6 + batch7 + batch8 + batch9 + temp, data=pratergrouped)
fit2 <- betareg(oil ~ batch1 + batch2 + temp, data=pratergrouped)
## With only one model
anova(fit1)
## With two models, note that the first model is the restricted one.
anova(fit2,fit1)
Run the code above in your browser using DataLab