inv_logit | R Documentation |
inv_logit
applies the inverse-logit transformation (expit/ logistic
function) to convert a vector of values between -Inf and Inf, to values
between 0 and 1. Used to convert the linear predictor of a logistic
regression model into a probability.
inv_logit(x)
x |
Numeric vector with values between -Inf and Inf. |
Numeric vector of probabilities (i.e. values between 0 and 1)
logit
inv_logit(-2)
inv_logit(c(-2,-1,0,1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.