I am trying to look at the association between Income (high, upper-middle, lower-middle, and lower) and Edition (esci and sci). I have two questions:
Can I do a chi-square even though this is not a 2x2 aka the predictor variable Income has 4 categories? If so, is this the correct code or do modifications need to be made to account for the non 2x2 format?
chisq.test(data1$income, data1$edition)
I had computed logistic regression models to look at the association between these variables and the odds ratio. Is this an appropriate statistical method, and if not, what would your recommend?
Thank you!