R/expit.R

Defines functions expit

Documented in expit

#' Expit, i.e., the inverse of logit = log(x / (1-x))
#'
#' @param x numeric, possibly a vector
#'
#' @return expit(x)
#' @export
#'
#' @examples expit(-5)
expit <- function(x) {
    1/(1 + exp(-x))
}
fintzij/statsparty documentation built on May 29, 2019, 8:31 a.m.