Implements Gallagher or disproportionality.
1 |
x |
May be a matrix, dataframe, or vector. If x is a dataframe or matrix then the entries denote voteshare and the columns are election years and the rows are parties. |
y |
A vector of fractions that x will be compared with (for example, a vector of the fraction of legislative seats won by each party). If x is a vector then y must be supplied. If x is a matrix or dataframe, y must be NA. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.