Skip to content
Prev 10489 / 20628 Next

glmmadmb and time-effects

Luca Corlatti <luca.corlatti at ...> writes:
mod <- glmmadmb(parasite~testosterone + cortisol + age + Tmin +
 hr + age:testosterone + age:cortisol + (1|year:month) + (1|id),
 family="nbinom", data=mydata, ZeroInflation=FALSE)
It seems plausible, although technically if your independent variables
are collinear with time, the most conservative/honest thing to do is
to admit that your variables of interest are somewhat confounded with
time.  In other words, including time as a random factor should
dilute the effect slightly less than including it as a fixed factor,
but it will still dilute it some, and you can't really get around that.

  If some of your variables take on more than one value at each time
step, you might consider including their interactions with time, e.g.
(cortisol|year:month) to allow for variation in the _effect_ over time
(the intercept-by-time model only allows for variation in the baseline
parasite emission over time) -- see e.g. Schielzeth and Forstmeier
Behavioural Ecology 2009 ...