Dominance Index for Nominal Variables

library(nomiShape)

Dominance Index for Nominal Variables

This vignette demonstrates how to compute the dominance index for nominal variables using the dominance_index function from the nomiShape package. The dominance index quantifies the degree to which a few categories dominate the distribution of a nominal variable.

Computing Dominance Index

# Example usage of dominance_index
dominance_index(categories, "animal")
#> [1] 0.091712
# Example usage of dominance_index
dominance_index(categories2, "animal")
#> [1] 0.113056
# Example usage of dominance_index
dominance_index(categories3, "animal")
#> [1] 0.295584