sample_predictive {elections.dtree} | R Documentation |
sample_predictive
draws ballots from a multinomial distribution with
probabilities obtained from a single realization of the Dirichlet-tree
posterior on the ranked ballots. See
Everest et al. (2022) for details.
sample_predictive(dtree, n_ballots)
dtree |
A |
n_ballots |
An integer representing the number of ballots to draw. |
A ranked_ballots
object containing n_ballots
ballots
drawn from a single realisation of the posterior Dirichlet-tree.
Everest F, Blom M, Stark PB, Stuckey PJ, Teague V, Vukcevic D (2022). “Ballot-Polling Audits of Instant-Runoff Voting Elections with a Dirichlet-Tree Model.” doi:10.48550/ARXIV.2209.03881..
Everest F, Blom M, Stark PB, Stuckey PJ, Teague V, Vukcevic D (2022). “Auditing Ranked Voting Elections with Dirichlet-Tree Models: First Steps.” doi:10.48550/ARXIV.2206.14605..