Stuart-Maxwell-test for marginal homogeneity

Install required packages

coin, DescTools

MH-test

     plac
drug   lo med  hi Sum
  lo   14   7   9  30
  med   5  26  19  50
  hi    1   7  12  20
  Sum  20  40  40 100

    Approximative Marginal Homogeneity Test

data:  response by
     conditions (drug, plac) 
     stratified by block
chi-squared = 12.139, p-value = 0.0011

Bhapkar-Test


    Bhapkar test

data:  cTab
chi-squared = 13.816, df = 2, p-value = 0.0009999

Detach (automatically) loaded packages (if possible)

Get the article source from GitHub

R markdown - markdown - R code - all posts