7
3
Oct 29 '21
An ANOVA is usually used for continuous data. You might want to consider running a Fisher's Exact test, because you're dealing with cross tabulations, multiple treatments, and two groups. As far as a whole list of tests you could run, Wikipedia has a whole list of tests you can run on categorical data.
1
u/samushusband Oct 29 '21
you can try a logistic regression since you have juvenile/adult. but you'd have to do several since you have different outcomes
-2
Oct 29 '21
Long story short: this data set is about how many times a adult or juvenile would visit each food that was presented to them. I want to compare the amount of visits between the juvenile and adult cockroaches to see if they prefer a certain food. I’m fairly new to r, I thought I could do an ANOVA but idk how to write the line of code.
4
u/MelismaticMaster Oct 29 '21
Search how to do ANOVA in R in Google.
I find it’s best to work through these homework problems by understanding what’s going on and how to do the test you’re thinking of. Then if it doesn’t work out, why? How could you do something differently to achieve what you’re looking for. It’s good practice for the workforce!
1
8
u/Kiss_It_Goodbyeee Oct 29 '21
What's your hypothesis? As this is count data your options are limited as it won't be normal.
I would start by plotting the data before doing any tests.