Performs a goodness-of-fit test and calculates the Gini coefficient.
The goodness-of-fit-test is calculated using stats::chisq.test
.
Arguments
- data
A tibble.
- col
The column holding factor values.
- clean
Prepare data by data_clean
- ...
Placeholder to allow calling the method with unused parameters from effect_counts.