[R] odds ratios in multiway tables (stratified)

Wim Bertels wim.bertels at khleuven.be
Wed Jul 30 15:48:09 CEST 2008


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



More information about the R-help mailing list