gallagher: Implements Gallagher or disproportionality.

Description Usage Arguments

View source: R/ev.r

Description

Implements Gallagher or disproportionality.

Usage

1
gallagher(x, y = NA)

Arguments

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.


marko363/ev documentation built on May 21, 2019, 12:22 p.m.