Description Usage Arguments Value Examples
It is a wrapper for the chisq.test. Two main diffenrece are that this function evaluates if the expected values of each cells is greater than 5 before computing test and it also adds a observed proportion table.
1 | test_chi_square(df, cat_1, cat_2)
|
df |
A data frame. |
cat_1 |
The quoted column name which contains one of categorical variable. |
cat_2 |
The quoted column name which contains the other categorical variable to be adressed. |
The same list as chisq.test would return plus the observed proportion.
1 | test_chi_square(df = data, cat_1 = "Pclass", cat_2 = "Survived")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.