Rev Language Reference


logistic - The logistic function

Compute the logistic function

Aliases

  • invlogit

Usage

logistic(Real x)

Arguments

x : Real (pass by const reference)
The value.

Return Type

Details

The function is defined as logistic(x) = 1/(1 + exp(-x)) = exp(x)/(1 + exp(x)) This function takes a real number to a probability. It is the inverse of the logit function.

Example

x ~ dnNormal(0,1)
p := logistic(x)

See Also