R/fexpit.R

Defines functions fexpit

Documented in fexpit

#' Helper function: expanded expit
#'
#' @param x       a vector of values between -Inf and +Inf
#' @param sqz     the amount by which to 'squeeze', default is .000001
#'
#' @return        a vector of values between 0 and 1 inclusive
#'
#' @import        gtools
#'
#' @export 
fexpit <- function(x, sqz=0.000001) {
  (((((inv.logit(x) * 2) - 1) / (1 - sqz)) + 1) / 2)
}
ttriche/sesamizeGEO documentation built on Nov. 12, 2023, 5:42 p.m.