harsm_invlink | R Documentation |
The inverse link function for the softmax. This function
takes the group-wise probabilities, \mu
, and computes
the expected ranks within each group under the Harville
model. That is, it is a groupwise computation of
the erank
function.
harsm_invlink(eta, mu = smax(eta, g), g = NULL)
eta |
a vector of the odds.
Must be the same length as |
mu |
a vector of the probabilities. Should sum to one,
at least per group.
Should be the same size as |
g |
a vector giving the group indices. If |
a vector of the ranks.
Steven E. Pav shabbychef@gmail.com
the ungrouped version of this, erank
.
mus <- runif(12)
mus <- mus / sum(mus)
harsm_invlink(mus)
harsm_invlink(mus,c(rep(1,6),rep(2,6)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.