Skip to content

How to write a two-way interaction as a random effect in a lmer model?

2 messages · Fucikova, Eva, Martin Henry H. Stevens

8 days later
#
Hi Eva,
A couple questions:
Are repeated measurements taken on rnr? Is rnr "subject"?
Is stress a continuous variable?

See below.
On Dec 11, 2006, at 11:04 AM, Fucikova, Eva wrote:

            
lmer will want rnr:stress to be a factor, but (0|factor) doesn't make  
sense. To test for random variation in slopes, you want (stress |  
rnr), (or (1|rnr) + (0+stress | rnr) for uncorrelated slopes).
Or rather with a plus sign
or
If the model statement was correct, these would be variances  
associated with the intercepts and slopes of different levels of rnr.  
Thus, I would call that rnr by stress interaction.

Cheers,
Hank
Hank Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056

Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
http://www.cas.muohio.edu/~stevenmh/
http://www.muohio.edu/ecology/
http://www.muohio.edu/botany/
"E Pluribus Unum"

If you send an attachment, please try to send it in a format anyone  
can read, such as PDF, text, Open Document Format, HTML, or RTF.  
Please try not to send me MS Word or PowerPoint attachments-
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html