Do you need a table with an odds ratio exactly equal to 3 (or other value), or a realistic sample from a population with odds ratio 3 where the sample table will have a different OR (but the various tables will cluster around the true value)?
-- 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: Friday, September 10, 2010 1:03 AM > To: r-help@r-project.org > Subject: Re: [R] Simulation > > I have two questions: > (1) How do you 'create' an 2 x 2 table in R using say an Odd ratio of > 3 or > even 0.5 > > (2) If I have several 2 x 2 tables, how can I 'implement' dependence in > the > tables with say 25 of the Tables having an odds ratio of 1 and 75 of > the > tables having an odds ratio of 4? > > 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.