search for: recap_random3

Displaying 1 result from an estimated 1 matches for "recap_random3".

Did you mean: recap_random1
2006 Dec 11
2
How to write a two-way interaction as a random effect in a lmer model?
...using the lme4 package in R. I created a model with the lmer function including some main effects, a two-way interaction and a random effect. Now I am searching how I could incorporate an interaction between the random effect and one of the fixed effects. I tried to express the interaction in: recap_random3<-lmer(breath~handling+stress+stress:handling+(1|rnr)+(0|rn r:stress)) however R gives me the following error message : Error in eval(expr, envir, enclos) : fl[[2]] must be a factor of length 1744 In addition: Warning messages: 1: numerical expression has 1744 elements: only the first used i...