Description Usage Arguments See Also Examples
Performs one-way goodness-of-fit and two-way contingency tests. The
function delegates the primary operations to chisq.test
.
1 2 3 4 5 6 |
dv1 |
Column vector containing the categorical dependent variable |
iv1 |
Column vector containing the categorical independent variable (contingency tests, only) |
p |
A vector of probabilities representing expected cell frequencies (goodness-of-fit tests, only). By default, the function assumes equal expected cell frequencies for all levels of the dependent variable. |
correct |
A logical argument: If FALSE, the function does not apply Yates's correction for 2×2 contingency tables; if TRUE, the function applies Yates's correction for 2×2 contingency tables. |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.