polarisation.ER: Polarisation Measure from Esteban and and Ray (1994)
Description
This function computes the polarisation measure proposed in Esteban and and Ray (1994).
Usage
polarisation.ER(alpha, rho, comp = FALSE)
Arguments
alpha
a scalar containing the alpha parameter from Esteban and Ray (1994) on the sensitivity to polarisation.
rho
a dataframe with the group means in the first column and their respective population shares in the second.
The groups need to be exogenously defined.
Note: the two columns should be named means and ''shares'' respectively. Otherwise a warning will appear.
comp
logical; if TRUE, all components pf p_i^(a+alpha)*p_j*abs(y_i-y_j)
Value
P
the polarisation measure proposed by Esteban and Ray (1994).
means
the means stored in rho.
shares
the shares stored in rho..
ERcomp
if comp is TRUE, the components aggregated in P.
References
Esteban, J. and Ray, D. (1994): On the Measurment of Polarization, in: Econometrica, Vol. 62(4), pp. 819-851.