I conducted an experiment where I want to predict response times in a picture classification task from person characteristics (age, prior experience) and item characteristics (similarity; color, shape, background). All participants saw all items and the "similarity" characteristic comprises all combinations of color, shape and backgroup.
subject age prior_exp tria rt sim color shape backg
<fct> <dbl> <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
1 930179102 22 5 trial1 1647 0 0 0 0
2 930179102 22 5 trial2 1949 1 1 0 0
3 930179102 22 5 trial3 2198 1 0 1 0
4 930179102 22 5 trial4 2051 1 0 0 1
5 930179102 22 5 trial5 1475 2 1 1 0
6 930179102 22 5 trial6 2402 2 0 1 1
7 930179102 22 5 trial7 1399 2 1 0 1
I'm just getting started with mixed models. As I understand it, age and prior_exp are fixed effects and similarity is a random effect, and color/shape/backg are crossed factors. Is that correct? I fitted this model but am not sure, how to incorporate the crossed factors.
lmm <- lmer(rt ~ age + prior_exp + sim + (sim|subject), data = df)
Is my reasoning so far correct and can anybody please help me with the crossed factors or point me in the right direction?