Let's say you have data as follows. I haven't figured out how to directly calculate the effect size of Cochran's Q test. So, here, similarly to Kruskal-Wallis test, I calculate the effect size for redhead strawberry teen girls post-hoc McNemar's test. First, you need to prepare the data. Then, include coin package, which is necessary for Cochran's Q test.