R/05_inv_logit.R

Defines functions inv_logit

Documented in inv_logit

#' Get inverse logit of a value
#'
#' @description The inverse logit of x
#' @param x A number
#' @return the inverse logit of x.
#' @examples
#' inv_logit(0)
#' inv_logit(1)
#' @export
inv_logit <- function(x) {
  rev <- exp(x) / (1 + exp(x))
  return(rev)
}
ktmurray1219/mmrefpoints documentation built on Dec. 21, 2021, 8:40 a.m.