Section 6.2 Learning Objectives
By the end of this chapter, you will be able to:
-
Identify situations in which categorical analysis is appropriate and numerical methods are not
-
Load and inspect categorical data to confirm variable types and structure
-
Create and interpret contingency tables using base R and tidyverse tools
-
Calculate and interpret row- and column-based percentages for categorical data
-
Visualize relationships between categorical variables using stacked and grouped bar charts
-
Conduct and interpret a chi-square test of independence using
chisq.test() -
Explain the role of expected counts, degrees of freedom, and p-values in chi-square testing
-
Use residuals and standardized residuals to identify cells that contribute most to a chi-square result
-
Quantify the strength of association between categorical variables using Cramerβs V
