text_combined: wim bertels wimbertelskhleuvenbe thu 20080731 1031 0500 marc schwartz wrote 07312008 0740 wim bertels wrote wed 20080730 1213 0500 marc schwartz wrote 07302008 0848 wim bertels wrote hi anyone know function calculate odds ratios multiway tables stratified usual statistics involved mean say table rcd every depth rc table table odds ratios calculated every 22 subtable logically function would look like orsmultiwaytable orsdatavar1rdatavar2cdatavar3d eg taking lot together keeping paradox simpson mind mvg wim mantelhaentest code examples using ucbadmissions data set also code woolf test example thanks marc cmh testing supposes common odds ratio hence woolf test strictly speaking correct whether one using woolf test breslowday test fact since reference sas copy categorical data analysis using sas system stokes et al 1995 back days using sas notes chapter stratified 2x2 tables second para page 53 also noted cda 2nd edition agresti 2002 page 235 said significant woolf bd test give pause relative validity _common_ odds ratio consider alternatives enable analysis interesting relationships data im interest common odds ratio fixed effects different categories looking way get odds ratios calculated family pvalues one andor family confidence intervals since multiple testing data snooping know easily done sas prefer r addition similar code vcd rmeta cran packages tnx structplot looks nice extra presume strucplot vcd package might also want look mh function epi package noted quick search morning also assumption homogeneity odds ratio valid situation may want consider interaction going alternative analytic approach logistic regression appropriate interaction term might make sense know completely agree helas tried route lots variaties succes finding good model btw still looking goodness fit statistic multinomial regression also called baseline regression like eg goeman lecessie statistic seems implemented r came prior thread might find helpful httpsstatethzchpipermailrhelp2007february126254html nicely explained also function recode 3d table usefull tnx wim regards marc ______________________________________________ rhelprprojectorg mailing list httpsstatethzchmailmanlistinforhelp please read posting guide httpwwwrprojectorgpostingguidehtml provide commented minimal selfcontained reproducible code wed 06 aug 2008 104903 0200 r odds ratios multiway tables stratified