Generalized logistic and inverse-logistic transformations.

logit(x, min = 0, max = 1)

ilogit(x, min = 0, max = 1)

Arguments

x

A numeric scalar or vector.

min, max

Numeric scalar or vectors denoting the bounds of the transformations.

Value

The logit or inverse-logit transoformation.

Details

The generalized logistic transformation is


logit(x) = log(p/(1-p)),    p = (x-min)/(max - min),

and its inverse is


ilogit(x) = min + (max-min)/(1+exp(-x).