### Cochran Q post-hoc example
data(HayleySmith)
library(RVAideMemoire)
cochran.qtest(Response ~ Practice | Student,
data = HayleySmith)
pairwiseMcnemar(x = HayleySmith$Response,
g = HayleySmith$Practice,
block = HayleySmith$Student,
test = "exact",
method = "fdr",
digits = 3)
Run the code above in your browser using DataLab