Cochran's Q test in R, or the extension of McNemar's test for more than two groups

· Antoine Soetewey · Aug. 26, 2026, 12:33 p.m.
Summary
This post discusses Cochran's Q test in R, an extension of McNemar's test for handling dependent observations across more than two groups. It serves as a follow-up to previous articles on Chi-square tests, emphasizing the importance of choosing the correct statistical tests depending on the nature of the data.