I have a variable young
that is equal to 1
if a participant is less than 25 years old. I then have a list of of each participant's favorite ice cream flavor (everyone has to choose among 25 flavors and can only make one choice). I would like to test if the distribution of tastes differs by age, using the young
variable.
I have been using a ttest
for each flavor, however, I am not sure this is correct. Is there a better way to test the distributions of all flavors by a dichotomous variable?
I am implementing my analysis using Stata
but I am happy to receive any opinion on the matter.