[R] Simulation
Greg Snow
Greg.Snow at imail.org
Fri Sep 10 20:52:36 CEST 2010
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.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: Friday, September 10, 2010 1:03 AM
> To: r-help at 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 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