Description Usage Arguments Value
View source: R/genMinkoOrder.R
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.
1 2 3 4 5 6 7 | genMinkoOrder(
numVotersGenMinko,
allEllipticalGenMinko = FALSE,
probabilityElipticalGenMinko = 1,
probabilityDiamondGenMinko = 0,
probabilitySquareGenMinko = 0
)
|
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. |
outMinkowskiOrder numVoters x 1 A vector of minkowski orders, one for each voter that determines the overall shape of the voter's indifference curves.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.