# Central Concentration for Nominal Variables

    library(nomiShape)

## Central Concentration for Nominal Variables

This vignette demonstrates how to compute the central concentration for nominal variables using the `central_concentration` function from the `nomiShape` package. Central concentration quantifies how concentrated the distribution of a nominal variable is around its most frequent categories.

### Computing Central Concentration

    # Example usage of central_concentration
    central_concentration(categories, "animal")
    #> [1] 0.3

    # Example usage of central_concentration
    central_concentration(categories2, "animal")
    #> [1] 0.448

    # Example usage of central_concentration
    central_concentration(categories3, "animal")
    #> [1] 0.82