I have an unbalanced data, that made participants to complete the same task two different times.
The independent variables are the levels of stress measured and the task order (one and two). The stress level is between-subjects and the task is within-subjects. The dependent variable is their reaction time in that task. I tried to run an Anova using the ezAnova function but I keep getting this error message.
this was the code that I used to run the Anova,
m <- ezANOVA(data = data, dv = RT, wid = ID, within = task_order,
between = level, observed = NULL,
diff = NULL, reverse_diff = FALSE, type = 2,
white.adjust = FALSE, detailed = TRUE,
return_aov = FALSE)
and this is the warning and error message I got each time.
"Error in ezANOVA_main(data = data, dv = dv, wid = wid, within = within, : One or more cells is missing data. Try using ezDesign() to check your data."
Does anyone know how to fix this error? Please help.