Hi, I need to understand odds ratio for more than 2x2 table, eg. for 2x3 table. How do we calculate it ? Obviously it can be calculated only for 2x2 so we must choose levels of categorical variable or combine/collapse those levels in order to get 2x2 table. Does anybody has got any good examples how it should be done, please ?
Here is my data:
dat1 <- structure(list(
Parent = c(
"Both", "Both", "One", "One", "Neither",
"Neither"
), Child = c("Yes", "No", "Yes", "No", "Yes", "No"),
Counts = c("401", "1381", "417", "1824", "189", "1169")
), row.names = 2:7, class = "data.frame")
So here we have got a scenario when both parents smoke, one or neither of them are smokers, and I want to calculate odds ratios about their children's decision to start smoking depending on the fact, that parent(s) smokes or not. Please help.