Compute the normalized Laakso and Taagepera heterogeneity index for a given discrete probability distribution.
Vector of a probability or relative frequency distribution
Laakso, M. and Taagepera, R. (1989). Effective number of parties: a measure with application to West Europe, Comparative Political Studies, 12, 3–27.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.