Close
SciStat
 

Cochran's Q test

Description

Cochran's Q test is an extension to the McNemar test for related samples that provides a method for testing the differences between three or more matched sets of frequencies or proportions.

Required input

  • Variables: the variables that contain the related observations. Data must be coded 0 to represent failure (or absence) and 1 to represent success (or presence).
  • Filter: an optional filter to include only a selected subgroup of cases.
  • Options
    • Significance level: the desired significance level for the post-hoc test. If the Cochran's Q test results in a P-value less than this significance level, SciStat.com performs a test for pairwise comparison of variables according to Sheskin, 2004.

Results

Frequencies

This table gives the frequencies of the values coded 0 (meaning absence or failure) and 1 (meaning presence or success) in the different variables, and the proportion (expressed as a percentage) of values coded 1.

Since Cochran's Q test is for related samples, cases with missing observations for one or more of the variables are excluded from the analysis, and the number of cases is the same for each variable.

Cochran's Q test

The null hypothesis for the Cochran's Q test is that there are no differences between the variables. If the calculated probability is low (P less than the selected significance level) the null-hypothesis is rejected and it can be concluded that the proportions in at least 2 of the variables are significantly different from each other.

Multiple comparisons

When the Cochran's Q test is positive (P less than the selected significance level) then a minimum required difference for a significant difference between two proportions is calculated (Sheskin, 2004) and a table is displayed showing which of the proportions are significantly different from which other proportions.

Literature

  • Sheskin DJ (2004) Handbook of parametric and nonparametric statistical procedures. 3rd ed. Boca Raton: Chapman & Hall /CRC.

Link

Go to Cochran's Q test.