irv_pivot_probs_four_cands | R Documentation |
Compute pivot probabilities and generate P-matrices for four-candidate IRV elections
irv_pivot_probs_four_cands(sims, n = 1000, reporting = 1)
sims |
A tibble of simulations, with an 'id' column and a column for each distinct ballot |
n |
The number of voters. |
reporting |
The level of reporting detail (0: none; 1: type of pivot event; 2: name of pivot event) |
A list of pivot events, each of which is a list with elements 'integral' and 'P'
sims <- simulate_ordinal_results_from_dirichlet(k = 4, n = 10000)
out <- irv_pivot_probs_four_cands(sims)
out %>% combine_P_matrices()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.