Skip to content
Prev 8883 / 20628 Next

Question on significancy of terms

Hi there,

I asked a similar question about a year ago:
https://stat.ethz.ch/pipermail/r-sig-mixed-models/2011q3/006690.html

To test for the significance of a, you could either use pvals.mcmc (in
the languageR package) to get an MCMC p-value, or do Wald chi-square
tests of model fits without the interaction term like so:

m1 <- glmer(y ~ a + b + (1|ind), family=poisson)
m2 <- glmer(y ~ a + (1|ind), family=poisson)
anova(m1, m2)

(Make sure you use the pipe character | for random effects.)

cheers,
Geoff
On Tue, Sep 11, 2012 at 3:29 PM, Leonel Lopez <llopezt2004 at yahoo.co.uk> wrote: