Re: [R] syntax for nested random factors in lme

2016-02-09 Thread Thierry Onkelinx
Dear Kathleen, R sig mixed models is more suited for questions on mixed models. It doesn't make sense to add the main effect of B to both the fixed and the random. Use me(x~y+B,random=~1|B:A) instead. 1|B:A is the interaction between B and A. Since B is in the fixed effects, it is equivalent to

[R] syntax for nested random factors in lme

2016-02-08 Thread Kathleen Côté
Hi, I've been taught that if I want to nest random factor A into B in an lme model, the syntax is as follows: lme(x~y+B,random=~1|B/A). In the case of my data, matters seem to be complicated by the fact that B is a categorical variable with only 2 levels. When I run the lme with the above