Skip to contents

Logistic function

Usage

logistic(x, slope = 1, midpoint = 0, upper = 1)

Arguments

x

Value

slope

Slope of logistic function. Defaults to 1.

midpoint

Midpoint of logistic function where the output is .5. Defaults to 0.

upper

Maximal value returned by logistic function. Defaults to 1.

Value

f(x), where f is the logistic function

Examples

logistic(0)
#> [1] 0.5
logistic(1, slope = 5, midpoint = 0.5)
#> [1] 0.9241418