The statistical test used to analyze nominal data from a study using two dependent groups is the ______.
chi-square goodness of fit
chi-square test for independence
McNemar test
Cochran Q test