Skip to content
Prev 82354 / 398513 Next

lmer and glmmPQL

On 12/5/05, Cox, Stephen <stephen.cox at ttu.edu> wrote:
If you want to ensure that QUADRAT is nested within SITE then use the
interaction operator explicitly

m2 <- lmer(RICH ~ ZONE +(YEAR|SITE)+ (YEAR|SITE:QUADRAT), family =
poisson, data)

For the grouping factors nested versus non-nested depends on the
coding.  If QUADRAT has a distinct level for each SITE:QUADRAT
combination then the nesting will automatically be detected.  However,
if the nesting is implicit (that is, if levels of QUADRAT are repeated
at different SITES) then it is necessary to use the interaction
operator.  There is no harm in using the interaction operator when the
nesting is explicit.
I believe the anova problems only occur with a binomial response. 
They are caused by my failure to use the prior.weights appropriately. 
For a Poisson model this should not be a problem.