logit | R Documentation |
Applies logit transformation
logit(p)
p |
a vector of probability values (0 to 1) |
A vector
Formula: log(p / (1 - p))
Returns NA values if input values are not between 0 and 1.
See https://hausetutorials.netlify.com/posts/2019-04-13-logistic-regression/#inverse-logit-and-logit-functions for intro to logit and inverse logit functions.
Hause Lin
logit(seq(-2, 2, length.out = 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.