[R] Exact test in nxm contingency table

Søren Højsgaard Soren.Hojsgaard at agrsci.dk
Wed Sep 17 12:24:52 CEST 2008

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. 


-----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


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
Gårdavägen 1
412 50 Göteborg

	[[alternative HTML version deleted]]

More information about the R-help mailing list