Description Usage Arguments Value Examples
View source: R/Electoral_index.R
This indicator is based on the nationalization index of each party. Its calculation is computed using the aggregation of party nationalisation scores weighted with the value of electoral weight, that is, the number of votes obtained. As with the Party Nationalisation Index (INP), values close to 1 will indicate strong nationalisation and values close to zero will indicate the opposite. The formula used for this indicator is as follows:
INSP=sum(INPi x pi)
Where INPi is the nationalization index of party i, and pi is the number of votes obtained by party i.
1 | INSP(datos)
|
datos |
It is a data.frame with the first column containing the name of the electoral district, the rest of the columns correspond to the parties presented and each column will contain the number of votes that each party has obtained in the corresponding electoral district. |
A real number containing the value of the indicator.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.