Example data for a chi-square test of independence. Individuals were polled and asked to report their number of friends (low, medium, high) and their number of children (1, 2, 3 or more). The analysis examines whether there is an association between friend group size and number of children. It was hypothesized that those with more children may have less time for friendship-maintaining activities.
data(chisq_data)A data frame with 2 variables:
Factor with levels "low", "medium",
and "high" indicating self-reported number of friends.
Factor with levels "1", "2", and "3+"
indicating number of children.
Nolan, S. A., & Heinzen, T. E. (*4th ed.*). *Statistics for the Behavioral Sciences*. Macmillan Learning.