Learn R Programming

elections.dtree (version 2.0.0)

update: Update a dirichlet_tree model by observing some ranked ballots.

Description

update updates a Dirichlet-tree model with observations to obtain a posterior distribution on the ranked ballots. See dtree_evoteid;textualelections.dtree for implementation details.

Usage

# S3 method for dirichlet_tree
update(object, ballots, ...)

Value

The dirichlet_tree object.

Arguments

object

A dirichlet_tree object.

ballots

A set of ballots - must be of type prefio::preferences.

\dots

Unused.

References

dtree_eiselections.dtree.

dtree_evoteidelections.dtree.