Learn R Programming

vacem (version 0.1-1)

logistic: Defines a simple logistic function, @f$ e^x / (1 + e^x) @f$.

Description

Defines a simple logistic function, @f$ e^x / (1 + e^x) @f$.

Usage

logistic(x)

Arguments

x
the variable to calculate the logistic function for

Value

exp(x) / (1 + exp(x))

Details

The logistic function is used repeatedly in the coverage analysis so it defined here to improve the readability of those calculations.

References

http://en.wikipedia.org/wiki/Logistic_function

Examples

Run this code
plot( x=x, y=logistic(x) )

Run the code above in your browser using DataLab