Skip to content
Prev 4169 / 20628 Next

help in coding random effects in lmer

I'm still learning mixed effects modelling myself, but one thing pops
out at me: In your formulae, you have the variable "meanRT"; I presume
this reflects the fact that you aggregated your data to means within
conditions prior to submitting it to lmer? If so, you have done
yourself a disservice; lmer can analyze the raw, trial-by-trial data
and you'll find that you can achieve higher power by providing it will
all the data. Now, a problem arises whereby RT data are  typically
positively skewed and violate the normality assumption; I feel there
is still a gap in the literature on how to deal with this (because
there are plenty of examples where this skew has been found to be
affected by experimental manipulations differentially from central
tendency), but a reciprocal transform at least seems to do well at
normalizing the residuals (Kliegl, Masson & Richter, 2009, compare
various transforms).

So, where "a" is your trial-by-trial data, I suggest you try:
a$rrt = 1/a$rt
fit1 = lmer(
    formula = rrt ~ (angle+laterality+condition:laterality)+(1|subject)
    , data = a
)

and let us know if you still get wonky results.

As a side note, l *think* that the difference between the two models
you posted was that the second permitted the effects to vary Ss-by-Ss,
which may be plausible but I assume costs power. As I understand it,
unless you are really interested in individual differences in the
effect (eg. for correlations, etc), it's better to avoid letting
effects vary Ss-by-Ss. (Again, I'm still getting to grips with mixed
effects modelling, so I may be entirely incorrect on these points!).
On Sat, Jul 31, 2010 at 8:41 AM, nuala brady <nuala.brady at ucd.ie> wrote: