Description Usage Arguments Value Author(s) Examples
Electoral Disproportionality: Rae (1971), Loosemore and Hanby (1971), Lijphart (1986), Lijphart (1994), Gallagher (1991) and Cox and Shugart (1991).
1 |
tidy_data |
data.frame that contains the following variables with these names:
If the data is not structured in this way you can order it with: |
method |
Method to calculate electoral volatility:
|
scale |
By default it is |
data.frame.
Nicolas Schmidt nschmidt@cienciassociales.edu.uy
1 2 3 4 5 6 7 8 9 10 11 12 | votes <- data.frame(election = rep(c(2000, 2005), each = 4),
unit = rep(c("ARG", "URY"), each = 4),
party = c("party_A", "party_B","party_C","party_D"),
votes = c(20, 30, 40, 10, 30, 35, 25, 10),
seats = c(25, 20, 40, 15, 35, 30, 30, 5)
)
dispro(votes, 1:6, 1)
dispro(votes, 3)
dispro(tidy_data = votes, method = 3:5)
dispro(tidy_data = votes, method = c(1,3,6))
dispro(tidy_data = votes, method = c("Rae", "Gallagher"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.