rhenery {ohenery} | R Documentation |
Random generation under the Henery (or Harville) softmax model.
Description
Given base probabilities, and Henery gamma coefficients, performs random generation, using R's built in rand seed, of the final outcome of a race for each participant.
Usage
rhenery(mu, gamma = NULL)
Arguments
mu |
a vector of the probabilities of taking first place. |
gamma |
a vector of the gamma coefficients. Should have length
one less than |
Details
Given vectors and
, first computes
then assigns a to participant
with probability
. The ‘winning’ participant is then removed
from consideration, and the process is repeated using the remaining
and
vectors.
Typically one has that , for some
‘odds’,
.
When the are all one, you recover the Harville softmax
model.
Value
A vector, of the same length as the probabilities, giving the entry of each horse. Note that the expected value of this returned thing makes sense, it is not the finished rank ordering of a race.
Author(s)
Steven E. Pav shabbychef@gmail.com