Hi.
I have one fixed and one random effect.  However, I cannot find how to code
their interaction term.  For example, the data have the following two
columns: site as random effect, and time as fixed effect.

mod1=lmer(x~(1|site),  data=mydata);       #site: random effect;
mod2=lmer(x~time+(1|site),  data=mydata);    #time: fixed effect;

These above codes work.  But I wonder how you do code for their interaction
term.  I tried to do several things (e.g., +time*(1|site), +(1|time*site),
... etc.), but all failed.

Please give me some tips.  Thank you,
Saang-Yoon

	[[alternative HTML version deleted]]


