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
dtree_evoteid;textualelections.dtree for details.
sample_predictive(dtree, n_ballots)A prefio::preferences object containing n_ballots
ballots drawn from a single realisation of the posterior Dirichlet-tree.
A dirichlet_tree object.
An integer representing the number of ballots to draw.
dtree_eiselections.dtree.
dtree_evoteidelections.dtree.