Description Usage Arguments Value Examples
Calculate logit (log odds) from probability
1 | calc_logit_from_p(probability, offset_for_01 = NULL)
|
probability |
A numerical vector (or single number) with probabilities between 0 and 1. |
offset_for_01 |
A decimal number to add to probability 0 or subtract from 1 to make calculation of logit possible. |
A numerical vector (or single number) representing the logit (log odds).
1 2 3 4 | calc_logit_from_p(0.2)
probabilities <- c(0.00, 0.07, 0.12,0.74, 1.00)
calc_logit_from_p(probabilities, offset_for_01 = 0.001)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.