[R] Simulating from the null distribution of a 2 x 3 table
Thomas Lumley
tlumley at uw.edu
Thu Jul 7 05:01:28 CEST 2011
On Thu, Jul 7, 2011 at 12:58 PM, Jim Silverton <jim.silverton at 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 simulate tables with a given set of row
and column totals.
-thomas
--
Thomas Lumley
Professor of Biostatistics
University of Auckland
More information about the R-help
mailing list