compute_gini_deciles.Rd
Function to calculate GINI coefficient from deciles.
compute_gini_deciles( df, inc_col = "shares", grouping_variables = c("region", "year", "sce", "model", "method") )
df | dataframe with decile data |
---|---|
inc_col | column with income shares. Make sure these are normalized that is they range from 0-1 |
grouping_variables | variables to group by |