Learn R Programming

volker (version 2.1.0)

effect_counts_items: Test homogeneity of category shares for multiple items

Description

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.

Usage

effect_counts_items(data, cols, labels = TRUE, clean = TRUE, ...)

Value

A volker tibble.

Arguments

data

A tibble containing item measures.

cols

Tidyselect item variables (e.g. starts_with...).

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.

Examples

Run this code
library(volker)
data <- volker::chatgpt

effect_counts_items(data, starts_with("cg_adoption_adv"))

Run the code above in your browser using DataLab