Re: [R] Simulating from the Null

2011-07-31 Thread Ben Bolker
Jim Silverton gmail.com> writes: > > Hello all, > I am doing glm with a negative binomial link. > I have two treatments and 3 replicates in each treatment. My question is > this, how can I simulate data for the the columns from the null and [alternative?] > distribution. > Simulate from th

[R] Simulating from the Null

2011-07-31 Thread Jim Silverton
Hello all, I am doing glm with a negative binomial link. I have two treatments and 3 replicates in each treatment. My question is this, how can I simulate data for the the columns from the null and distribution. -- Thanks, Jim. [[alternative HTML version deleted]]

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 to

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

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 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 simulate tables with a

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

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 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]] __ R-help@r-p