Skip to content
Prev 10953 / 20628 Next

equality constraints in lmer/lme4

If X1 and X2 are both numeric variables then

Outcome ~ I( X1 + X2 ) + (1|Subject)

should give you what you need.

If both are categorical, then you need to create a set of variables
that represent the combination (make sure that you understand what
that combination represents).

On Sun, Oct 20, 2013 at 7:52 PM, Jean-Philippe Laurenceau
<jlaurenceau at psych.udel.edu> wrote: