Re: [R] Exact test in nxm contingency table

2008-09-17 Thread Thomas Lumley
On Wed, 17 Sep 2008, Peter Dalgaard wrote: fisher.test(, simulate.p.value=TRUE) might be more direct. Also works for chisq.test(). And, contrary to popular belief, fisher.test() does work for larger than2x2 tables, although you may run into space/time limitations. The 'exact' test comput

Re: [R] Exact test in nxm contingency table

2008-09-17 Thread Peter Dalgaard
Søren Højsgaard wrote: > 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 > fisher.test(, simulate.p.value=TRUE) might be more direct. Also work

Re: [R] Exact test in nxm contingency table

2008-09-17 Thread Søren Højsgaard
Pettersson Sendt: 17. september 2008 10:50 Til: r-help@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

[R] Exact test in nxm contingency table

2008-09-17 Thread Magnus Pettersson
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