| effect_counts_items | R Documentation |
Performs a goodness-of-fit test and calculates the Gini coefficient for each item.
The goodness-of-fit-test is calculated using stats::chisq.test.
effect_counts_items(
data,
cols,
adjust = "fdr",
labels = TRUE,
clean = TRUE,
...
)
data |
A tibble containing item measures. |
cols |
Tidyselect item variables (e.g. starts_with...). |
adjust |
Performing multiple significance tests inflates the alpha error.
Thus, p values need to be adjusted according to the number of tests.
Set a method supported by |
labels |
If TRUE (default) extracts labels from the attributes, see codebook. |
clean |
Prepare data by data_clean. |
... |
Placeholder to allow calling the method with unused parameters from effect_counts. |
A volker tibble with the following statistical measures:
Gini coefficient: Gini coefficient, measuring inequality.
n: Number of cases the calculation is based on.
Chi-squared: Chi-Squared test statistic.
p: p-value for the statistical test.
stars: Significance stars based on p-value (*, **, ***).
library(volker)
data <- volker::chatgpt
effect_counts_items(data, starts_with("cg_adoption_adv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.