Re: [R] odds ratios in multiway tables (stratified)

From: Marc Schwartz <marc_schwartz_at_comcast.net>
Date: Wed, 30 Jul 2008 12:13:04 -0500

on 07/30/2008 08:48 AM Wim Bertels wrote:
> Hi,
>
> does anyone know of a function to calculate odds ratios in multiway
> tables (stratified) (+ the other usual statistics involved)
>
> i mean:
> say we have a table r*c*d,
> For every d (depth) we have a r*c table,
> and in this table the odds ratio's are calculated for every 2*2 subtable
> in it.
>
> logically this function would look like):
> ORs(multiwaytable)
> or
> ORs(data$var1r,data$var2c,data$var3d)
>
> (eg. not taking the lot together, keeping the paradox of simpson in
> mind)
>
> mvg,
> Wim

In ?mantelhaen.test, there is some code in the examples using the UCBAdmissions data set. There is also code for the Woolf test in the same example.

In addition, there is similar code in the 'vcd' and 'rmeta' CRAN packages.

HTH, Marc Schwartz



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. Received on Wed 30 Jul 2008 - 17:15:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 31 Jul 2008 - 14:33:03 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive