index | R Documentation |
Calculate the disproportionality indices.
index(x, ...)
## S3 method for class 'prcalc'
index(
x,
k = 2,
eta = 2,
alpha = 2,
unit = c("l2", "l1", "joint"),
omit_zero = TRUE,
...
)
x |
a |
... |
ignored |
k |
a parameter for Generalized Gallagher index. Default is |
eta |
a parameter for Atkinson index. Default is |
alpha |
a parameter for alpha-divergence. |
unit |
A unit of observation. This argument is valid only when p (e.g., votes or population) and q (e.g., seats or magnitudes) are two-dimensional structures. If |
omit_zero |
If |
a prcalc_index
object.
Laakso, Markku and Rein Taagepera. 1979. ""Effective" Number of Parties: A Measure with Application to West Europe". Comparative Political Studies. 12 (1): 3–27.
Gallagher, Michael. 1991. "Proportionality, Disproportionality and Electoral Systems". Electoral Studies. 10: 33–51.
data(jp_upper_2019)
obj <- prcalc(jp_upper_2019, m = 50, method = "dt")
obj_index <- index(obj)
obj_index
obj_index["gallagher"] # Extract Gallagher index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.