Description Usage Arguments Value
Randomly generate a Loss Function Order for all voters in a data set. genLossOrder
is used in conjuction
with GenMinkoOrder
, 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 | genLossOrder(
numVotersGenLoss,
lossOrderForAllGenLoss = FALSE,
probabilityLinearGenLoss = 1,
probabilityQuadraticGenLoss = 0,
probabilityCubicGenLoss = 0
)
|
numVotersGenLoss |
scalar Number of voters |
lossOrderForAllGenLoss |
logical or scalar If If FALSE (the default) then the agent's loss order for their utility function is determined by the other parameters in this function. If a number is provided this will be the order of the loss function for all voters. |
probabilityLinearGenLoss |
scalar [0,1] The probability that any given voter will have elliptical (Minkowski Order of 2) indifference curves. |
probabilityQuadraticGenLoss |
scalar [0,1] The probability that any given voter will have Manhattan/Diamond (Minkowski Order = 1) indifference curves. |
probabilityCubicGenLoss |
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.