I have 2 categorical variables for each observation in my dataset: environment and behaviour. I'm trying to test association between them i.e. does the environment affect behaviour? The resulting contingency table is:
Behv1 Behv2 Behv3 Behv4
Env 1 54 15 16 0
Env 2 739 201 13 39
I am not sure what statistical test I should use? Normally for association I should use chi-square but some of the cell values are too small, so I think I should Fisher's exact test or is any other that suits best?
Also, I need to report the confidence intervals resulting from the test. How should I do this?
Thanks!
> fisher.test(mytable)
Fisher's Exact Test for Count Data
data: mytable
p-value = 5.114e-11
alternative hypothesis: two.sided
Got the p-value which indicates association. How can I get the confidence levels? $\endgroup$