Let's say you have data as follows. I haven't figured out how to directly calculate swxt younf teen boys effect size of Cochran's Q test. So, here, similarly to Kruskal-Wallis test, I calculate the effect size for a post-hoc McNemar's test. First, you need to prepare the data. Then, include coin package, which is necessary for Cochran's Q test. After that, you just need to specify which the independent or dependent variable is with a similar swxt younf teen boys for ANOVA.