I am trying to find associations between dorsal patterns (uniform, complex etc) of frogs and microhabitat selection (leaf litter, rock etc). I am using a 5x6 contigency table but more than 20% have < 5 expected values, because of this I have opted for the Fishers exact test rather than chi square. The following code was used that gave a significant result:

fisher.test(CT.MH.PAT, simulate.p.value = TRUE, B=100000)

I now need to find out which levels associate most with each other but I am struggling to find which post hoc test I should use. I have attempted to use the following:

fisher.multcomp()

pairwise.fisher()

chisq.posthoc.test()

pairwise.t.test()

But R doesnt seem to recognise these functions (I have devtools, tidyverse and MASS all loaded), is there a package I am missing?

If anyone could provide some assistance, or perhaps a good source I can read through! Thank you.

Similar questions and discussions