lodds | R Documentation |
Calculates the logit (log-odds) and inverse-logit.
logit(mu)
inv_logit(eta)
mu |
A numeric object with probabilies, with values in the in
the range |
eta |
A numeric object with log-odds values, with values in
the range |
Values of mu equal to 0 or 1 will return -Inf or Inf respectively.
A numeric object of the same type as mu and eta containing the logits or inverse logit of the input values. The logit and inverse transformation equates to
\text{logit}(\mu) = \log(\mu/(1-\mu))
\text{logit}^{-1}(\eta)= \exp(\eta)/(1 + \exp(\eta)).
logit(0.2)
inv_logit(-1.386)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.