R/util-CInftransform.R

Defines functions InvT.1Inf Trans.1Inf InvT.0Inf Trans.0Inf InvT.01 Trans.01 InvT.m10 Trans.m10

# Infinitely differentiable transformations of R into a bounded or half-bounded interval

#Transformation from (-Inf, +Inf) to (-1, 0)
Trans.m10 <- function(x)
  -1/(1+exp(-x))
#Inverse
InvT.m10 <- function(x) 
  log(-x/(1+x))

#Transformation from (-Inf, +Inf) to (0, 1)
Trans.01 <- function(x)
  1/(1+exp(-x))
#Inverse
InvT.01 <- function(x)
  log(x/(1-x))

#Transformation from (-Inf, +Inf) to (0, +Inf)
Trans.0Inf <- function(x)
  exp(x)
#Inverse
InvT.0Inf <- function(x)
  log(x)

#Transformation from (-Inf, +Inf) to (1, +Inf)
Trans.1Inf <- function(x)
  1+exp(x)
#Inverse
InvT.1Inf <- function(x)
  log(x-1)

Try the mbbefd package in your browser

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

mbbefd documentation built on Aug. 29, 2023, 1:06 a.m.