Hello, I am trying to find a permutation test that works on a general nxm table. The data set is small enough to have cells with too small counts to make chi2-approximation invalid. If the table was a 2x2 contingency table I would like to use a Fsher exact test (fisher.test) but that wont work in this general table. Does there exist a general function for this test. Best regards, Magnus Pettersson Statistikkonsulterna Gårdavägen 1 412 50 Göteborg 0703-731297 www.statistikkonsulterna.se [[alternative HTML version deleted]]
Using r2dtable() you can simulate general tables nxm with given margins. Based on these you acn calculate a Monte Carlo p-value for a conditional test for independence. Regards S?ren -----Oprindelig meddelelse----- Fra: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] P? vegne af Magnus Pettersson Sendt: 17. september 2008 10:50 Til: r-help at r-project.org Emne: [R] Exact test in nxm contingency table Hello, I am trying to find a permutation test that works on a general nxm table. The data set is small enough to have cells with too small counts to make chi2-approximation invalid. If the table was a 2x2 contingency table I would like to use a Fsher exact test (fisher.test) but that wont work in this general table. Does there exist a general function for this test. Best regards, Magnus Pettersson Statistikkonsulterna G?rdav?gen 1 412 50 G?teborg 0703-731297 www.statistikkonsulterna.se [[alternative HTML version deleted]]