Skip to content
Prev 173288 / 398506 Next

Nesting order for mixed models

On Tue, Mar 10, 2009 at 2:47 PM, Jon Zadra <jrz9f at virginia.edu> wrote:
I don't think Trial is necessary.  If I understand correctly it is not
really an experimental or observational factor in that you don't
expect that trial 1 for one subject/distance combination will be
related to trial 1 for another combination.
I think that is all you need.   In lmer the formula would be y ~
Condition + Distance + (1|Subject).
In some ways of thinking of the model, Trial would be grouped under
the Subject:Distance combination but then it becomes unnecessary
because it is just another way of labeling the observations.  A random
effect for Trial within Subject:Distance is confounded with the
"residual" or per-observation noise term.