genMinkoOrder: genMinkoOrder Generates Minkowski Orders for voters in a...

Description Usage Arguments Value

View source: R/genMinkoOrder.R

Description

Randomly generate a MinkowskiOrder for all voters in a data set. genMinkoOrder is used in conjuction with genSalience and genIdeals by genVoters to generate the parameters of each agent's Salience Weighted Minkowski Utility function.

Usage

1
2
3
4
5
6
7
genMinkoOrder(
  numVotersGenMinko,
  allEllipticalGenMinko = FALSE,
  probabilityElipticalGenMinko = 1,
  probabilityDiamondGenMinko = 0,
  probabilitySquareGenMinko = 0
)

Arguments

numVotersGenMinko

scalar Number of voters

allEllipticalGenMinko

logical If If FALSE (the default) then the agent's Minkowski order for their utility function is determined by the other parameters in this function. If TRUE then all agents will have eliptical indifference curves (Minkowski Order = 2). If their salience's across all dimesnions is 1 then the indifference curves will be circles.

probabilityElipticalGenMinko

scalar [0,1] The probability that any given voter will have elliptical (Minkowski Order of 2) indifference curves.

probabilityDiamondGenMinko

scalar [0,1] The probability that any given voter will have Manhattan/Diamond (Minkowski Order = 1) indifference curves.

probabilitySquareGenMinko

scalar [0,1] The probability that any given voter will have Chebyshev/Square (Minkowski Order = 100) indifference curves.

Value

outMinkowskiOrder numVoters x 1 A vector of minkowski orders, one for each voter that determines the overall shape of the voter's indifference curves.


robiRagan/voteR documentation built on Feb. 27, 2020, 6:48 p.m.