R/expit.r

Defines functions expit

Documented in expit

#' Expit (inverse logit) function
#'
#' This function transforms the input using the expit function
#'
#' @param x vector of values to apply the expit function
#'
#' @export
#' @return A vector of the same dimension of \code{x}
#'
#'
expit <- function(x){
   exp(x)/(1+exp(x))
}

Try the madr package in your browser

Any scripts or data that you put into this service are public.

madr documentation built on May 2, 2019, 6:03 a.m.