[R] moving from aov() to lmer()

roberto toro rto at psychology.nottingham.ac.uk
Sat Sep 13 18:17:14 CEST 2008


I'm using this command to analyse changes in brain volume:


I'm comparing males/females. For every subject I have 8 volume
measurements (4 different brain lobes and 2 different tissues
(grey/white matter)).

But I read that aov() results change with the order of the factors
(type I anovas). So I would like to use lmer() with type II, but I'm
struggling to find the right syntaxis...

How should I write the model I use with aov() using lmer()??

Specifying Subject as a random effect is straightforward


but I can't figure out the /(Lobe*Tissue) part...

Thank you very much in advance!


More information about the R-help mailing list