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.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Jim Silverton > Sent: Wednesday, January 06, 2010 1:17 AM > To: r-help@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@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. ______________________________________________ R-help@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.