I am trying to run the ANOVA test using this function:
ProportionofCorrectTrials %>% anova_test(data=New,
formula = ProportionofCorrectTrials ~ Condition*Firsttargetboundary + Error(ID/(Condition*Firsttargetboundary)))
I am being given this response:
Error: Each row of output must be identified by a unique combination of keys.
Keys are shared for 75 rows:
I then tried to changing some of the values to ensure there were none of the same values in more than one column.
I am then getting this error:
df %>% anova_test(data=New,
formula = ProportionofCorrectTrials ~ Condition*Firsttargetboundary + Error(ID/(Condition*Firsttargetboundary)))
Error: Must subset columns with a valid subscript vector.
x The subscript has the wrong type `data.frame<
c3: double
c4: double
z : double
`.
It must be numeric or character.
Would anybody be able to assist?
Here is a snapshot of the dataframe New: