Re: [R] understanding I() in lmer formula

2017-06-15 Thread Don Cohen
The suggestion to post on R-sig-ME was a good one. The problem turned out to be a bug in lmer parsing, which is now fixed. S Ellison writes: > > Is there a difference between I(x*y) and I(y*x) ? > > I have a call to lmer that results in this complaint: > > Error in is.alpha2.subordinate * ~z

Re: [R] understanding I() in lmer formula

2017-06-15 Thread S Ellison
> Is there a difference between I(x*y) and I(y*x) ? > I have a call to lmer that results in this complaint: > Error in is.alpha2.subordinate * ~z.min.co.res : A reproducible example would help ... In the absence of that, check the classes of the two variables in I() and, if you run the produc

Re: [R] understanding I() in lmer formula

2017-06-13 Thread Bert Gunter
If you don't get a prompt reply here, you might do better posting this on the r-sig-mixed-models list (for obvious reasons). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom

[R] understanding I() in lmer formula

2017-06-13 Thread Don Cohen
Is there a difference between I(x*y) and I(y*x) ? I have a call to lmer that results in this complaint: Error in is.alpha2.subordinate * ~z.min.co.res : non-numeric argument to binary operator when I change this line: I(is.alpha2.subordinate*z.min.co.res)+ to this: I(z.min.co.res*is.alph