Skip to content
Prev 9618 / 20628 Next

What is the difference between Matlab Anovan and R mixed Model?

Gordon, Joanne <jcgordon at ...> writes:
so D is 'individual'?
see e.g. Schielzeth and Nakagawa _Methods in Ecology and Evolution_
on this topic.
I think you want

 lmer(A ~ B*C + (B*C|D), data=emgDat)

 **BUT** this only makes sense if the treatments B and C vary within
individuals, or at least within some individuals.  Otherwise you
can't estimate the interaction between B and C (and their interaction)
and D , which is what that last term does ...

   Hope that helps.