[R] formula in lmer including both nested and crossed effects

From: Eduardo G. Martins <egmartins_at_gmail.com>
Date: Wed, 19 Nov 2008 11:37:52 -0800

Dear all,

I was wondering if someone could help me with the specification of a formula including both nested and crossed effects in the same model in lmer. I have one predictor variable, x, and three grouping factors, a,b and c. Factor b is nested in a but is partially crossed with c. Also, I'm interested in an interaction between the crossed effects b and c. I specified a formula in lmer as

y ~ x + (1|a/b) + (1|c) + (1|b:c)

I could fit this model using lmer with no problems but I just would like to know if that specification is correct. Thank you so much for any thoughts.


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 19 Nov 2008 - 19:46:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Nov 2008 - 20:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive