Test the null hypothesis that an observed difference between sets of categorical data arose by chance by performing a Pearson's chi-squared test.
Details
Pearson's chi-squared applies to categorical data to evaluate how likely it is that any observed difference between the sets has arisen by chance. Select two categorical variables to create a contingency table containing the frequencies of the categories in these variables. A Pearson's chi-squared test will be performed on this contingency table.
Output
The first section of the output is a tabulation of the selected groups on which the Chi-Squared test will be performed. The second section is the printed output of a chisq.test
run in R. There are more details on this printed output in the R documentation for chisq.test.
Parameters
Variable name | Required | Constraints | Description |
---|---|---|---|
test_var | Yes | Column Input.
Text, Integer, Boolean, Date, DateTime |
The first categorical variable from which to calculate the contingency table. |
group_var | Yes | Column Input.
Text, Integer, Boolean, Date, DateTime |
The second categorical variable from which to calculate the contingency table. |