[R] Generating data from Null Distribution
Greg Snow
Greg.Snow at imail.org
Thu Jan 7 20:04:06 CET 2010
Just randomly permute one of your columns (see ?sample) of the raw data (before using the table function to get the table).
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Jim Silverton
> Sent: Wednesday, January 06, 2010 1:17 AM
> To: r-help at r-project.org
> Subject: Re: [R] Generating data from Null Distribution
>
> Hello everyone,
>
> Can someone tell me exactly how to generate data from a null
> distribution
> for the fisher exact test? I know I have to use the hypergrometric but
> exactly what commands do I use?
>
> Jim
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list