Skip to content
Prev 15187 / 20628 Next

modeling question

On Thu, Jan 26, 2017 at 9:38 AM, Joaqu?n Aldabe
<joaquin.aldabe at gmail.com> wrote:
(I don't mind if you cc: me, but this is really a question to the
list. Probably better to frame it as "I sent this to the list and Ben
Bolker said ...")
Hmm, is this with lme or lmer?  Can you give more detail?  If it's
lmer, it's quite likely a false positive.
Depends on a number of things.  Your original message suggested
that you sampled over the course of 30 days (maybe at different times
in different plots?)  If this is the case (e.g. you sampled plot 1 on
days 1, 5, 9, ... and plot 2 on days 2, 6, 10 ...) then it is probably
most sensible to treat time as a numeric variable (i.e., assume a
linear trend over days) and possibly a random effect with days as a
grouping variable (in which case you might have to switch from lme to
lmer).  If you have a small number of distinct sample days then a
categorical variable makes sense. Whether you specify it as ordered or
(default) unordered doesn't affect the overall fit of the model, just
the particular contrasts that get tested with respect to the time
variable.