This function builds a generalized logistic curve from a vector of data points and a set of parameters. The function is used in genlog.

genlogFunction(x, x0, Ab, At, B, v)

Arguments

x

A numeric vector with measurement moments or indices of measurement moments.

x0

A single numeric value specifying at which moment the curve is at its midpoint (when v = 1).

Ab, At

Respectively the lowest and highest possible values of the dependent variable.

B

The growth rate (curve steepness).

v

(parameter is currently not used, is fixed at 1)

Details

For details, see Verboon & Peters (2018).

References

Verboon, P. & Peters, G.-J. Y. (2018) Applying the Generalized Logistic Model in Single Case Designs: Modeling Treatment-Induced Shifts. Behavior Modification https://doi.org/10.1177/0145445518791255

See also

Author

Peter Verboon (Open University of the Netherlands)

Maintainer: Gjalt-Jorn Peters gjalt-jorn@userfriendlyscience.com

Examples

time <- 1:20; yVar <- genlogFunction(1:20, 10, 1, 7, 1, 1); plot(time, yVar, type='l', xlab='time', ylab='y');