Hello,
I am currently trying to do an anova for a data set I have, but keep getting an error message. I am attempting to do an anova to test whether levels of fear of crime differ between male and female participants, and whether this depends on whether they have been a victim of crime or not. I thought to do a three-way repeated measures anova, but it keeps telling me it cant find the 'sex' data, and then the 'victim_crime' so I am unsure where I am going wrong. Am I using the wrong anova or is my code wrong? I have put the code chunk below.
res.avo <- aov_ez(data = crime_replication,
dv = fear_of_crime, wid = id,
within = c(sex, crime_victim))
get_anova_table(res.avo)
Thank you in advance!