Coalition Probabilities in Multi-Party Democracies


[Up] [Top]

Documentation for package ‘coalitions’ version 0.6.5

Help Pages

calculate_prob Calculate coalition probability from majority table
calculate_probs Calculate coalition probabilities for multiple coalitions
collapse_parties Transform surveys in long format
dHondt Seat Distribution by D'Hondt
draw_from_posterior Draw random numbers from posterior distribution
get_latest Scrape surveys from all pollsters
get_probabilities Wrapper for calculation of coalition probabilities from survey
get_seats Calculate seat distribution from draws from posterior
get_surveys Scrape surveys from all pollsters
get_surveys_by Scrape surveys from all pollsters
get_surveys_nds Scrape surveys from all pollsters
hare_niemeyer Seat Distribution by Hare/Niemeyer
have_majority Do coalitions have a majority
party_colors_de Colors of German parties
pool_surveys Obtain pooled survey during specified period
redistribute Calculate percentage of votes/seats after excluding parties with 'votes < hurdle'
scrape_austria Import Austrian survey results
scrape_by Scrape surveys from wahlrecht.de
scrape_ltw Scrape surveys from wahlrecht.de
scrape_wahlrecht Scrape surveys from wahlrecht.de
sls Seat Distribution by Sainte-Lague/Schepers
surveys_sample Sample of selected surveys