powered by
Compute the normalized Laakso and Taagepera heterogeneity index for a given discrete probability distribution.
laakso(prob)
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.
gini
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