sample_predictive | 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
\insertCitedtree_evoteid;textualelections.dtree for details.
sample_predictive(dtree, n_ballots)
dtree |
A |
n_ballots |
An integer representing the number of ballots to draw. |
A prefio::preferences
object containing n_ballots
ballots drawn from a single realisation of the posterior Dirichlet-tree.
dtree_eiselections.dtree.
\insertRefdtree_evoteidelections.dtree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.