Logistic: Logistic function

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Compute the result of a logistic function and a predictor variable x:
y = mx / (1 + exp(-sl * (x - x0)))

Usage

1

Arguments

par

parameters of the logistic function, a vector of length 3 (asymptote mx, slope sl, turning point x0)

x

independent variable

...

further arguments (not used)

Details

No details.

Value

a vector

Author(s)

Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]

References

No reference.

See Also

FitLogistic

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x <- -20:20
par <- c(1, 0.5, 0)
plot(x, Logistic(par, x), type="l")

par <- c(1, 0.2, 0)
plot(x, Logistic(par, x), type="l")

par <- c(10, -1, 0)
plot(x, Logistic(par, x), type="l")

par <- c(-2, -1, 0)
plot(x, Logistic(par, x), type="l")

ModelDataComp documentation built on Nov. 22, 2020, 3 a.m.