Abstract
Contingency tables are designed to study relationships between two categorical variables or factors. A contingency table has rows and columns labeled with the levels of two factors. The (row iācolumn j) cell in the table gives the number of observations in the dataset whose value on the first factor is level i and whose value on the second factor is level j. For example, if we have a group of people of both genders, with some smokers and some nonsmokers, we can ask the question, is the percentage of smokers essentially the same for both genders or, equivalently, does the data indicate that there is a significant difference in percentage of smokers?
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
Ā© 2009 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
Heiberger, R.M., Neuwirth, E. (2009). Contingency Tables and the Chi-Square Test. In: R Through Excel. Use R. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-0052-4_13
Download citation
DOI: https://doi.org/10.1007/978-1-4419-0052-4_13
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4419-0051-7
Online ISBN: 978-1-4419-0052-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)