probs2logits | R Documentation |
Converts probabilities into logits
probs2logits(probs)
logits2probs(y)
probs |
Vector containing probabilities |
y |
Vector containing logits |
A vector with logits or probabilities
#############################################################################
# EXAMPLE 1: Probability-logit-conversions: a toy example
#############################################################################
# define vector of probabilities
probs <- c( .3, .25, .25, .2)
sum(probs)
# convert probabilities into logits
y <- immer::probs2logits( probs )
# retransform logits into probabilities
immer::logits2probs(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.