R/expit.r

#' 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, 2019, 3 p.m.