logit.Rd
Compute generalized logit and generalized inverse logit functions.
logit(x, min = 0, max = 1)
inv.logit(x, min = 0, max = 1)
value(s) to be transformed
Lower end of logit interval
Upper end of logit interval
The generalized logit function takes values on [min, max] and transforms them to span [-Inf,Inf] it is defined as:
$$y = log(\frac{p}{(1-p)})$$
where
$$p=\frac{(x-min)}{(max-min)}$$
The generized inverse logit function provides the inverse transformation:
$$x = p' (max-min) + min$$
where
$$p'=\frac{exp(y)}{(1+exp(y))}$$
Transformed value(s).