effect_counts_one_grouped | R Documentation |
Chi squared is calculated using stats::chisq.test
.
If any cell contains less than 5 observations, the exact-parameter is set.
effect_counts_one_grouped(data, col, cross, clean = TRUE, ...)
data |
A tibble. |
col |
The column holding factor values. |
cross |
The column holding groups to compare. |
clean |
Prepare data by data_clean. |
... |
Placeholder to allow calling the method with unused parameters from effect_counts. |
Phi is derived from the Chi squared value by sqrt(fit$statistic / n)
.
Cramer's V is derived by sqrt(phi / (min(dim(contingency)[1], dim(contingency)[2]) - 1))
.
A volker tibble with the following statistical measures:
Cramer's V: Effect size measuring the association between two variables.
n: Number of cases the calculation is based on.
Chi-squared: Chi-Squared test statistic.
df: Degrees of freedom.
p: p-value for the statistical test.
stars: Significance stars based on p-value (*, **, ***).
library(volker)
data <- volker::chatgpt
effect_counts_one_grouped(data, adopter, sd_gender)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.