Learn R Programming

CUB (version 1.1.5)

laakso: Normalized Laakso and Taagepera heterogeneity index

Description

Compute the normalized Laakso and Taagepera heterogeneity index for a given discrete probability distribution.

Usage

laakso(prob)

Arguments

prob

Vector of a probability or relative frequency distribution

References

Laakso, M. and Taagepera, R. (1989). Effective number of parties: a measure with application to West Europe, Comparative Political Studies, 12, 3--27.

See Also

gini

Examples

Run this code
prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24)
laakso(prob)

Run the code above in your browser using DataLab