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.
Examples
inv_logit(-2)
#> [1] 0.1192029
inv_logit(c(-2,-1,0,1,2))
#> [1] 0.1192029 0.2689414 0.5000000 0.7310586 0.8807971