vfs | R Documentation |
Implementations of the four laws from the book Votes from Seats.
vfs(S, M, t = NULL, ret_SM = T)
Ns(S, M, t = NULL)
s1(S, M, t = NULL)
Nv(S, M, t = NULL)
v1(S, M, t = NULL)
S |
Vector of assembly sizes. If |
M |
Vector of average district sizes. If |
t |
Optional, vector of upper tier seat shares. |
ret_SM |
A |
These functions implement the four fundamental laws from the book Votes from Seats in R.
These laws are:
Number of effective parties in terms of seats:
N_s = (MS)^\frac{1}{6}
Seat share of the largest party:
s_1 = (MS)^\frac{-1}{8}
Number of effective parties in terms of votes:
N_v = ((MS)^\frac{1}{4}+1)^\frac{2}{3}
Vote share of the largest party:
v_1 = ((MS)^\frac{1}{4}+1)^\frac{-1}{2}
If t
is supplied, then these are instead calculated as:
Number of effective parties in terms of seats:
N_s = 2.5^t (MS)^\frac{1}{6}
Seat share of the largest party:
s_1 = 0.5^t (MS)^\frac{1}{8}
Number of effective parties in terms of votes:
N_v = (4^t (MS)^\frac{1}{4} + 1)^\frac{2}{3}
Vote share of the largest party:
v_1 = (4^t (MS)^\frac{1}{4} + 1)^\frac{-1}{2}
Ns
, s1
, Nv
, v1
all return a vector of
numeric values. vfs
returns a dataframe containing six columns,
S
, M
, and a column for each of the measures.
shugart2017psmisc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.