Skip to content

type III effect from glm()

1 message · Simon Pickett

#
Cheers Mark,

I did originally think too, i.e. that not including the main effect was the 
problem. However, the same thing happens when I include main effects....

test1<-glm(count~siteall+yrs*district,family=quasipoisson,weights=weight,data=m[x[[i]],])
test2<-glm(count~siteall+district+yrs:district,family=quasipoisson,weights=weight,data=m[x[[i]],])
anova(test1,test2,test="F")

Model 1: count ~ siteall + yrs * district
Model 2: count ~ siteall + district + yrs:district
  Resid. Df Resid. Dev   Df Deviance F Pr(>F)
1      1933      75665
2      1933      75665    0        0

Simon.




----- Original Message ----- 
From: <markleeds at verizon.net>
To: "Simon Pickett" <simon.pickett at bto.org>
Sent: Thursday, February 19, 2009 10:50 AM
Subject: RE: [R] type III effect from glm()