Skip to content
Prev 18296 / 20628 Next

Models and Power Analysis for Within-subject Design in LMER

Hi Lei,

It's been a while, but I haven't a response to your email go by and I'm
trying small productivity tasks to get the stats juices flowing, so here
it goes ....
On 14/10/19 5:08 pm, Fan, L. via R-sig-mixed-models wrote:
In both cases, each subject and each scenario is measured multiple
times, so it makes sense to have each as a blocking variable. The
nesting/crossing structure of subjects and scenarios? don't have to be
specified explicitly, so this model won't change. Note that if you had
changed between- and within-subject manipulations (i.e. random slopes),
then the model would usually change.

In other words, your model didn't change because you didn't have the
manipulation encoded in the random effects and lme4 doesn't care about
nesting/crossing of random effects in the model specification.
The between-subject and between-scenario variability didn't change, so
why would the power change? :) In real data, I suspect you will see a
change because you'll have a better estimate of the variability
introduced by subjects vs. the residual variability.
Nope, simulation is considered the standard for power analysis in
mixed-effects models.

Best,

Phillip