Re: [R] defining "id" argument in geeglm

2011-08-29 Thread Anna Mill
thanks for your answer! For the butterfly counts we used butterfly bait traps. They were not visible counts. I read several ecological papers that treat species or individuals counts as Poisson applying GLM rather than e.g. repeated measures ANOVA. I assumed that the monthly collection out of a sp

Re: [R] defining "id" argument in geeglm

2011-08-29 Thread Prof Brian Ripley
You need to tell use why you want to use a GEE model. From your use of corstr = "ar1" I would surmise you think the counts are serially correlated during a year (despite the presence of a 'month' main effect), in which case the id is 'site'. All 'id' does is to partition the data into cluster

[R] defining "id" argument in geeglm

2011-08-29 Thread Anna Mill
Hi all, I am trying to do a generalized estimating equation (GEE) with the "geepack" package and I am not 100% sure what exactly the "id" argument means. It seems to be an important argument because results differ considerably defining different clusters. I have a data set of counts (poisson dist