Executes the spatial model of voting, solving, for each iteration, the constrained optimization problem of minimizing the distance of the Status Quo to the Agenda Setter by the means of a majority vote.
1 2 3 4 5 6 7 8 9 10 11 | Vote(x, ...)
## S3 method for class 'formula'
Vote(formula, drift = NULL, vibration = NULL,
iter = 1, keep_winset_objects = TRUE, no_random_veto = FALSE,
no_random_normal = FALSE, winset_quadsegs = 100, ...)
## S3 method for class 'Voters'
Vote(voters, sq, drift = NULL, vibration = NULL,
iter = 1, keep_winset_objects = TRUE, no_random_veto = FALSE,
no_random_normal = FALSE, winset_quadsegs = 100, ...)
|
x |
() |
... |
Additional keyword arguments. |
formula |
A formula with SQ on LHS and Voters on RHS. |
drift |
A vector detailing the drift of each voter in each dimension. |
vibration |
A function generating random noise, must take 'n' as first argument. |
iter |
The number of votes to cast. |
keep_winset_objects |
Boolean indicator for whether to keep winset spatial polygons. |
no_random_veto |
If there are '"Random"' voters, never assign them to the '"Veto"' role. |
no_random_normal |
If there are '"Random"' voters, never assign them to the '"Normal"' role. |
winset_quadsegs |
Number of linear segments used to approximate voter indifference circles. |
voters |
(required if no formula principal argument is given.) An object of class '"Voters"'. |
sq |
(required if no formula principal argument is given.) An object of class '"SQ"'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.