Cochran’s Q test is a nonparametric test for homogeneity across matched samples for three or more binary outcomes. You can use it to test for differences in proportions in matched pairs. Cochran’s Q test is an extension of the McNemar test used for two outcomes.