### Independence test for a 4 x 2 matrix
data(Anderson)
fisher.test(Anderson)
pairwiseNominalIndependence(Anderson,
fisher = TRUE,
gtest = FALSE,
chisq = FALSE)
Run the code above in your browser using DataLab