Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-09 Thread Jim Silverton
Thanks for all your help thus far. My final question is this, if I want to simulate all the 2 x 3 tables (with column totals and row totals fixed), how do I do this using r2dtable(), and find the one that gives me the smallest fisher's exact test. Will r2table() generate unique tables everytime

Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-07 Thread peter dalgaard
On Jul 7, 2011, at 05:01 , Thomas Lumley wrote: On Thu, Jul 7, 2011 at 12:58 PM, Jim Silverton jim.silver...@gmail.com wrote: Dear all, I want to simulate from the null distribution of the following 2 x 3 table, 2 5 10 4 8 5 I am using a chi-squared test. Anyone has any

Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-06 Thread Jim Silverton
Dear all, I want to simulate from the null distribution of the following 2 x 3 table, 2 5 10 4 8 5 I am using a chi-squared test. Anyone has any idea how to do this? -- Thanks, Jim. [[alternative HTML version deleted]] __

Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-06 Thread David Winsemius
On Jul 6, 2011, at 8:58 PM, Jim Silverton wrote: Dear all, I want to simulate from the null distribution of the following 2 x 3 table, 2 5 10 4 8 5 I am using a chi-squared test. Yeah. Right. A chi-squared test. That certainly narrows it down ... to maybe one quarter of all

Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-06 Thread Bert Gunter
Homework? If not, context? -- Bert On Wed, Jul 6, 2011 at 5:58 PM, Jim Silverton jim.silver...@gmail.com wrote: Dear all, I want to simulate from the null distribution of the following 2 x 3 table, 2   5  10 4   8   5 I am using  a chi-squared test. Anyone has any idea how to do this?

Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-06 Thread Thomas Lumley
On Thu, Jul 7, 2011 at 12:58 PM, Jim Silverton jim.silver...@gmail.com wrote: Dear all, I want to simulate from the null distribution of the following 2 x 3 table, 2   5  10 4   8   5 I am using  a chi-squared test. Anyone has any idea how to do this? The r2dtable() function will