We want to run a mixed effects model for our experimental design using lme4 package in R and want to confirm if our model is specified correctly.
Our design involves two random factors (participants and stimuli) and two fixed factors – first fixed factor is ‘condition’ with 3 levels and the second fixed factor is ‘group’ with 2 levels. The condition fixed factor is a within-subjects factor and the culture fixed factor is a between-subjects factor. Stimuli are crossed across conditions and counterbalanced between participant. The full data set is attached in this post.
We want to test the main effect of condition and the interaction of culture and condition. The model we specify is provided below. We have based this on a paper by Westfall and colleagues (Judd, C. M., Westfall, J., & Kenny, D. A.; 2016)and adapted the code from an app they developed.
link to app: https://jakewestfall.shinyapps.io/crossedpower/),
We are adapting their code for the ‘Counterbalanced’ design as it fits most closely to our design. We also plan to contrast code the IVs, as specified in the app. Is the code below to test interaction effects specified correctly? Also, should we specify a separate model to look at main effect of condition?
model