Our team is conducting operations remotely to promote health and safety during COVID-19, and remains dedicated to providing you with uninterrupted services. We are available to address your technical questions at firstname.lastname@example.org.
Experimental designs that sample both subjects and stimuli from a larger population need to account for random effects of both subjects and stimuli using mixed effects models. However, much of this research is analyzed using ANOVA on aggregated responses because researchers are not confident specifying and interpreting mixed effects models. The tutorial will explain how to simulate data with random effects structure and analyse the data using linear mixed effects regression (with the lme4 R package). The focus will be on interpreting the LMER output in light of the simulated parameters, using this method for power calculations. Data simulation can not only enhance understanding of how these models work, but also enables researchers to perform power calculations for complex designs.
Example code: Rmd / html
Example code without tidyverse: Rmd / html
More complex example: Rmd / html
Shiny App Simulating LMEM
Shiny App Crossed Random Effects
Get more citations
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information,
and information on cookie use.