Functions to compute state-specific and marginal life expectancies. The computation is based on a fitted continuous-time multi-state model that includes an absorbing death state; see Van den Hout (2017, ISBN:9781466568402). The fitted multi-state model model should be estimated using the 'msm' package using age as the time-scale.

Decomposes the seat-to-vote distortion for every party (individual party bias or individual party deviation from proportional representation) into segments that can be attributed to separate causes for the party infra or over-representation: the electoral system effect (separating the mean and the variance effect within it) and the population effect (separating malapportionment and unequal participation effect within it).   It works on (single tired) districted electoral systems with any number of seats per district. In addition, the package aggregates the individual party distortion into an index of deviation from proportionality (the Losemore-Hanby  index) whose value is also decomposed into segments attributed to the major causes of deviation from proportionality (plus the interactions among them).

This includes a dataset on the outcomes of the USA presidential elections since 1920, and various predictors, as used in <https://www.vanderwalresearch.com/blog/15-elections>.

Perform ballot-polling Bayesian audits for ranked voting elections
    using Dirichlet-tree prior distributions. Everest et al. (2022)
    <arXiv:2206.14605>, <arXiv:2209.03881>.

Offers a set of functions to easily download and clean 
    Brazilian electoral data from the Superior Electoral Court website. 
    Among others, the package retrieves data on local and
    federal elections for all positions (city councilor, mayor, state deputy,
    federal deputy, governor, and president) aggregated by
    state, city, and electoral zones.

Provides all electivity algorithms (including Vanderploeg and Scavia 
    electivity) that were examined in Lechowicz (1982) <doi:10.1007/BF00349007>, 
    plus the example data that were provided for moth resource utilisation.