powered by
Performs a goodness-of-fit test and calculates the Gini coefficient. The goodness-of-fit-test is calculated using stats::chisq.test.
stats::chisq.test
effect_counts_one(data, col, clean = TRUE, ...)
A volker tibble.
A tibble.
The column holding factor values.
Prepare data by data_clean
Placeholder to allow calling the method with unused parameters from effect_counts.
library(volker) data <- volker::chatgpt data <- data |> filter(sd_gender != "diverse") |> effect_counts_one(sd_gender)
Run the code above in your browser using DataLab