Using the R Commander by John Fox

Using the R Commander by John Fox

Author:John Fox
Language: eng
Format: epub
Publisher: CRC Press


FIGURE 5.6: The Enter Two-Way Table dialog: Table tab (top) and Statistics tab (bottom).

FIGURE 5.7: Output produced by the Enter Two-Way Table dialog, having entered a contingency table from The American Voter.

The Statistics tab appears at the bottom of Figure 5.6. I check the box for Row percentages because the row variable in the table, intensity of preference, is the explanatory variable; the Chi-square test of independence checkbox is selected by default. I also check Print expected frequencies, which is not selected by default.

The output from the dialog is shown in Figure 5.7. Reported voter turnout increases with intensity of partisan preference, and the relationship between the two variables is highly statistically significant, with a very small p-value for the chi-square test of independence. All of the expected counts are much larger than necessary for the chi-square distribution to be a good approximation to the distribution of the test statistic; had that not been the case, a warning would have appeared, whether or not expected frequencies are printed.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.