Indicator Distributions

Now that our metrics have been aggregated into indicators, we can observe the univariate distributions of the indicators themselves. We will do this for all six sets of transformations.

1 Summary

Below are counts of skewed indicator distributions for each transformation.

Code
# Load scores data for all transformations
scores <- readRDS('data/state_score_iterations.rds')
get_str(scores)

# Rearrange data to make a single DF as table
out <- map_vec(scores, ~ {
  .x[['indicator_scores']] %>% 
    dplyr::filter(str_detect(state, 'US_|NE_', negate = TRUE)) %>% 
    dplyr::select(-state) %>% 
    psych::describe() %>% 
    dplyr::select(skew) %>% 
    dplyr::filter(abs(skew) > 2) %>% 
    nrow()
}) %>% 
  as.data.frame() %>% 
  tibble::rownames_to_column() %>% 
  setNames(c('Transformation', 'Indicators with Skew > 2')) %>% 
  arrange(Transformation)
out
Code
get_reactable(
  out, 
  fullWidth = FALSE,
  searchable = FALSE,
  defaultPageSize = 20,
  defaultColDef = colDef(
    minWidth = 200
  )
)

2 Raw

2.1 Rank Arithmetic

Code
get_indicator_distributions(scores, 'raw_rank_arithmetic')

2.2 Rank Geometric

Code
get_indicator_distributions(scores, 'raw_rank_geometric')

2.3 Min Max Arithmetic

Code
get_indicator_distributions(scores, 'raw_minmax_arithmetic')

2.4 Min Max Geometric

Code
get_indicator_distributions(scores, 'raw_minmax_geometric')

2.5 Z-Score Arithmetic

Code
get_indicator_distributions(scores, 'raw_zscore_arithmetic')

2.6 Z-Score Geometric

Code
get_indicator_distributions(scores, 'raw_zscore_geometric')

3 Winsor

3.1 Rank Arithmetic

Code
get_indicator_distributions(scores, 'winsor_rank_arithmetic')

3.2 Rank Geometric

Code
get_indicator_distributions(scores, 'winsor_rank_geometric')

3.3 Min Max Arithmetic

Code
get_indicator_distributions(scores, 'winsor_minmax_arithmetic')

3.4 Min Max Geometric

Code
get_indicator_distributions(scores, 'winsor_minmax_geometric')

3.5 Z-Score Arithmetic

Code
get_indicator_distributions(scores, 'winsor_zscore_arithmetic')

3.6 Z-Score Geometric

Code
get_indicator_distributions(scores, 'winsor_zscore_geometric')

4 Box Cox

4.1 Rank Arithmetic

Code
get_indicator_distributions(scores, 'boxcox_rank_arithmetic')

4.2 Rank Geometric

Code
get_indicator_distributions(scores, 'boxcox_rank_geometric')

4.3 Min Max Arithmetic

Code
get_indicator_distributions(scores, 'boxcox_minmax_arithmetic')

4.4 Min Max Geometric

Code
get_indicator_distributions(scores, 'boxcox_minmax_geometric')

4.5 Z-Score Arithmetic

Code
get_indicator_distributions(scores, 'boxcox_zscore_arithmetic')

4.6 Z-Score Geometric

Code
get_indicator_distributions(scores, 'boxcox_zscore_geometric')

Back to top