powered by
This function generates uniform discrete scores on a given scale
generate_unif_disc(n_voters, n_candidates, min = 0, max = 10)
A matrix of scores with 'n_candidates' rows and 'n_voters' columns.
integer, the number of voters to generate scores for.
integer, The number of candidates to generate scores for.
The minimum value of the distribution, by default 0
The maximum value of the distribution, by default 10
voting_situation <- generate_unif_disc(n_voters=10, n_candidates=3, min=0, max=5)
Run the code above in your browser using DataLab