11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ANALYSIS USING R 75For the first study, the null hypothesis of independence of treatment andgastrointestinal damage, i.e., of no treatment effect of Misopros<strong>to</strong>l, is testedbyR> <strong>lib</strong>rary("coin")R> cmh_test(classification ~ treatment, data = Lanza,+ scores = list(classification = c(0, 1, 6, 17, 30)),+ subset = Lanza$study == "I")Asymp<strong>to</strong>tic Linear-by-Linear Association Testdata: classification (ordered) bytreatment (Misopros<strong>to</strong>l, Placebo)chi-squared = 28.8478, df = 1, p-value = 7.83e-08and, by default, the conditional distribution is approximated by the correspondinglimiting distribution. The p-value indicates a strong treatment effect.For the second study, the asymp<strong>to</strong>tic p-value is a little bit larger:R> cmh_test(classification ~ treatment, data = Lanza,+ scores = list(classification = c(0, 1, 6, 17, 30)),+ subset = Lanza$study == "II")Asymp<strong>to</strong>tic Linear-by-Linear Association Testdata: classification (ordered) bytreatment (Misopros<strong>to</strong>l, Placebo)chi-squared = 12.0641, df = 1, p-value = 0.000514and we make sure that the implied decision is correct by calculating a confidenceinterval for the exact p-value:R> p pvalue(p)[1] 5.00025e-0599 percent confidence interval:2.506396e-07 3.714653e-04The third and fourth study indicate a strong treatment effect as well:R> cmh_test(classification ~ treatment, data = Lanza,+ scores = list(classification = c(0, 1, 6, 17, 30)),+ subset = Lanza$study == "III")Asymp<strong>to</strong>tic Linear-by-Linear Association Testdata: classification (ordered) bytreatment (Misopros<strong>to</strong>l, Placebo)chi-squared = 28.1587, df = 1, p-value = 1.118e-07© 2010 by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!