# Tail Index for Nominal Variables

    library(nomiShape)

## Tail Index for Nominal Variables

This vignette demonstrates how to compute the tail index for nominal variables using the `tail_index` function from the `nomiShape` package. The tail index quantifies the proportion of categories contributing to the lower part of the distribution, useful for identifying long-tail structures in nominal data.

### Computing Tail Index

    # Example usage of tail_index
    tail_index(categories, "animal")
    #> [1] 0.1818182

    # Example usage of tail_index
    tail_index(categories2, "animal", threshold = 0.9)
    #> [1] 0.1818182

    # Example usage of tail_index
    tail_index(categories3, "animal", threshold = 0.75)
    #> [1] 0.7272727