Including it as a within variable results in a different error:
> ezANOVA(data=data, within=.(interface,task_number), wid=.(user_id), dv=.(task_time))
Warning: "task_number" will be treated as numeric.
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.
Calls: ezANOVA -> ezANOVA_main
Execution halted
(Exactly the same, without the treated-as-numeric warning, for my "order" factor.)
Doesn't this syntax assume that I have data for each combination of interface and task number, per user?
I've also tried the "grouping" version, i.e. order_group assumes one of six values of the kind "ABC" etc., then calling:
ezANOVA(data=data, within=.(interface), between=.(order_group), wid=.(user_id), dv=.(task_time))
That works (as in, doesn't result in an error), and the numbers are the same when I use:
aovout = aov(task_time~interface*order_group+Error(user_id/interface), data=data)
However, they are (obviously, I guess) not the same as from my original version:
aovout = aov(task_time~interface*order+Error(user_id/interface), data=data)
I'm not sure if I can articulate this well, but it appears to me that using the "order" factor would be preferrable -- because it retains the notion that "this session" was executed at "this position" (rather than "this user" was subject to treatment "ABC" for all three sessions).
For example, after the aov(...order...) call, a post-hoc analysis clearly shows the (not necessarily desirable, but expected) training effect (sessions executed last where significantly faster 2nd, and 1st), while the post-hoc analysis after the aov(...order_group...) call gives me 15 pairwise comparisons between each possible order, which is much less clear to interpret (there is no significant effect between CAB and ACB...), and obviously, each of them is based on much less data...
Does that make sense? Is there any way to execute it this way? What kind of a factor is "order" then, if it's neither within nor between?
Or, maybe: can somebody explain to me why using the grouping factor is indeed the preferable way here, if it is?
Thanks,
Steffen