Hello, I've tried to analyze some data with a CMH test. My 3 dimensional contingency tables are 2x2xN where N is usually between 10 and 100. The problem is that there may be 2 strata with opposite counts (the 2x2 contigency table for these are reversed), producing opposite odds ratios that cancle out in the overall statistics. These opposite counts are very important for my analysis, since they account for a dramatic difference. Could you recommend alternative tests that take account for opposite counts? Would you suggest a different strategy to analyze such data? thanks a lot for your suggestions, Arne
Hi Arne, This seems to be more a statistics than an R problem. Let's assume, one stratum is male and the other is female, and that you are giving estrogen. With women, it may be better to have more estrogen, with men to have less. Thus, if you recode women: (more estrogen/less estrogen) -> (more appropriate/less appropriate) men: (more estrogen/less estrogen) -> (less appropriate/more appropriate) and if this reflects your hypothesis, it will solve your problem. Knut At 14:42 2003-12-11 +0100, you wrote:>Hello, > >I've tried to analyze some data with a CMH test. My 3 dimensional contingency >tables are 2x2xN where N is usually between 10 and 100. > >The problem is that there may be 2 strata with opposite counts (the 2x2 >contigency table for these are reversed), producing opposite odds ratios that >cancle out in the overall statistics. These opposite counts are very >important for my analysis, since they account for a dramatic difference. > >Could you recommend alternative tests that take account for opposite counts? >Would you suggest a different strategy to analyze such data? > > thanks a lot for your suggestions, > > Arne > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-helpKnut M. Wittkowski, PhD,DSc ------------------------------------------ The Rockefeller University, GCRC Experimental Design and Biostatistics 1230 York Ave #121B, Box 322, NY,NY 10021 +1(212)327-7175, +1(212)327-8450 (Fax) kmw at rockefeller.edu http://www.rucares.org/clinicalresearch/dept/biometry/
On Thu, 11 Dec 2003 14:42:07 +0100 <Arne.Muller at aventis.com> wrote:> Hello, > > I've tried to analyze some data with a CMH test. My 3 dimensional > contingency tables are 2x2xN where N is usually between 10 and 100. > > The problem is that there may be 2 strata with opposite counts (the 2x2 > contigency table for these are reversed), producing opposite odds ratios > that cancle out in the overall statistics. These opposite counts are > very important for my analysis, since they account for a dramatic > difference. > > Could you recommend alternative tests that take account for opposite > counts? Would you suggest a different strategy to analyze such data? > > thanks a lot for your suggestions, > > Arne >I'm not sure about your specific problem, but in general you might think of this as a binary or multinomial logistic model with strata x treatment interactions, and get pooled treatment main effect + interaction effects, which are equivalent to testing whether treatment is associated with response for ANY stratum (without cancellation when signs of effects are reversed). With the Design package, for example, you can do this easily when the response is binary or ordinal: library(Design) f <- lrm(y ~ treat*strat) anova(f) # prints multiple d.f. test for treat as either main effect or effect modifier Of course when you allow for a more general model such as this, the power is diluted into multiple degrees of freedom when the effects really do not vary very much over strata. Frank --- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Possibly Parallel Threads
- R equivalent of SAS Cochran-Mantel-Haenszel tests?
- Mantel-Haenszel for 2x2
- Quick question on Cochran-Mantel-Haenszel test
- Introducing samplesizeCMH: Power and Sample Size Calculation for the Cochran-Mantel-Haenszel Test
- Introducing samplesizeCMH: Power and Sample Size Calculation for the Cochran-Mantel-Haenszel Test