A shortcut wrapper function to get the observed test statistic for a chisq test. Uses chisq.test(), which applies a continuity correction.
1 | chisq_stat(data, formula, ...)
|
data |
A data frame that can be coerced into a tibble. |
formula |
A formula with the response variable on the left and the explanatory on the right. |
... |
Additional arguments for chisq.test(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.