generate_beta {voteSim}R Documentation

Generates a simulation of voting according to a beta law, returns voters preferences

Description

Generates a simulation of voting according to a beta law, returns voters preferences

Usage

generate_beta(
  n_voters,
  n_candidates,
  beta_a = 0.5,
  beta_b = 0.5,
  lambda = 0,
  min = 0,
  max = 1
)

Arguments

n_voters

integer, represents the number of voters in the election

n_candidates

integer, represents the number of candidates in the election

beta_a

double, parameter of the Beta law (by default 0.5)

beta_b

double, parameter of the Beta law (by default 0.5)

lambda

double, alternative parameter of the Beta law

min

int, the minimum value of the range of possible scores (by default 0)

max

int, the maximum value of the range of possible scores (by default 1)

Value

scores

Examples

voting_situation<- generate_beta(n_voters=10, n_candidates=3, beta_a=1, beta_b=5)


[Package voteSim version 0.1.1 Index]