This is a quite simple question but I don't find any good, clear, precise answers: I'm looking for a way to perform post hoc test on a chi$^2$ test.
I have 2 variables : var1 : good/fair/poor and var2: a/b/c
This is the contingency table :
a b c
good 120 70 13
fair 230 130 26
poor 84 83 18
with R :
mat <- matrix(c(120,230,84,70,130,83,13,26,18),3)
dimnames(mat) <- list(c("good","fair","poor"),c("a","b","c"))
mat
I perform $\chi^2$
chisq.test(mat)
I obtain p =0.022, so there is a relation between var1 and var2... but which one? How can I handle this? (contribution analysis?, pairwise prop test?)