0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 0 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 Specifying the Analysis Analyze -> Nonparametric tests -> Legacy Dialogs -> 2 Related Samples Uncheck the default Wilcoxon signed ranks test. Check the McNemar Test. The Results NPar Tests McNemar Test Crosstabs Seven persons switched from Reagan before to Carter after while 13 switched from Carter before to Reagan after. But the p value is > .05, so the difference in no. of persons switching was not significant. Doing the McNemar Test in R (not Rcmdr) At the R prompt . . . Enter the following EXACTLY as shown. . . > x <- matrix(c(27,7,13,28),2,2) > mcnemar.test(x) You should then see, in the R window (not window) . . . McNemar's Chi-squared test with continuity correction data: x McNemar's chi-squared = 1.25, df = 1, p-value = 0.2636 Note that the is the same as SPSS’s. SPSS did not print the chi-square value.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Specifying the Analysis Analyze -> Nonparametric tests -> Legacy Dialogs -> 2 Related Samples Uncheck the default Wilcoxon signed ranks test. Check the McNemar Test. The Results NPar Tests McNemar Test Crosstabs Seven persons switched from Reagan before to Carter after while 13 switched from Carter before to Reagan after. But the p value is > .05, so the difference in no. of persons switching was not significant. Doing the McNemar Test in R (not Rcmdr) At the R prompt . . . Enter the following EXACTLY as shown. . . > x <- matrix(c(27,7,13,28),2,2) > mcnemar.test(x) You should then see, in the R window (not window) . . . McNemar's Chi-squared test with continuity correction data: x McNemar's chi-squared = 1.25, df = 1, p-value = 0.2636 Note that the is the same as SPSS’s. SPSS did not print the chi-square value.