Bayesian "Now-Cast" Estimation of Event Probabilities in Multi-Party Democracies


[Up] [Top]

Documentation for package ‘coalitions’ version 0.6.20

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_brb Scrape surveys from all pollsters
get_surveys_by Scrape surveys from all pollsters
get_surveys_nds Scrape surveys from all pollsters
get_surveys_rp Scrape surveys from all pollsters
get_surveys_saxony Scrape surveys from all pollsters
get_surveys_thuringen Scrape surveys from all pollsters
gg_survey Plot voter shares observed in one survey
hare_niemeyer Seat Distribution by Hare/Niemeyer
have_majority Do coalitions have a majority
party_colors_de Colors for German parties
party_labels_de Labels for 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 for German general election
scrape_ltw Scrape surveys for German general election
scrape_rp Scrape surveys for German general election
scrape_wahlrecht Scrape surveys for German general election
sls Seat Distribution by Sainte-Lague/Schepers
surveys_sample Sample of selected surveys
try_readHTML Try call of read_html that throws an error if the url cannot be resolved