| perform_categorical_test | R Documentation |
Conducts chi-square or Fisher's exact tests for categorical variables across groups. Automatically selects Fisher's exact test for small expected frequencies.
perform_categorical_test(tab, test_type)
tab |
Contingency table (matrix or table object). |
test_type |
Character string: "chisq" for chi-square, "fisher" for Fisher's exact, or "auto" for automatic selection. |
Numeric p-value from the hypothesis test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.