Description Usage Arguments Value Examples
With this function the slightly adapted version of the polarisation index from Dalton (2008) is computed to measure polarization. This index weights the ideological positions of the parties by their election results. This indicator ranges from 0 (in the hypothetical case that all parties occupy the same ideological position) to 10 if the parties are at the extremes of the scale position. The formula to compute it is as follows:
Pd=√{∑_{i=1}^{n}p_{i}≤ft[\frac{\overline{x}_{i}-\overline{x}_{p}}{4.5}\right]^{2}}
Pd = sqrt(sum(p_j*(x_j-mean(x_p))/4.5)^2) for i = 1, 2, …,n
1 | polarizacion_Dalton(datos)
|
datos |
It is a data.frame with three columns: the first one contains the name of the political parties. The second must have the value of the ideological location (scale from 1 to 10), and the third one the percentage of votes obtained with respect to all the parties presented, whether or not they are taken into account to calculate the formula. |
Returns the numerical value of this indicator
1 2 3 4 5 | d2<- data.frame(partidos=c("RN","PDC","PS","PPD","UDI","PRSC"),
ubicacion=c(6.36,5.31,2.73,4.13,7.04,4.00),
c(14.12,20.76,10.05,15.42,22.36,3.54))
polarizacion_Dalton(d2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.