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))
}
mcefalu/madr documentation built on May 22, 2017, 1:11 a.m.