mggg / VoteKit

A Swiss Army Knife for computational social choice research
https://votekit.readthedocs.io/en/latest/
MIT License
10 stars 12 forks source link

add SlatePreference model #120

Closed cdonnay closed 7 months ago

cdonnay commented 7 months ago

This PR adds a new model of ballot generator, the SlatePreference model, as well as two tests for the test suite.

  1. The SlatePreference model uses the cohesion parameter of a voter to determine their ballot type; a coin weighted by the cohesion parameter is flipped repeatedly, determining the order of the slates on the ballot. The candidate names are then filled in in a PL style.
  2. Added completion and distribution tests for the SP model.

@jamesturk @drdeford @jgibson517 @jennjwang @ziglaser