logistic: Logistic growth law

Description Usage Arguments Details Value Examples

View source: R/logistic.R

Description

The function calculates the values of the logistic growth curve for given time points.

Usage

1
logistic(time, A, mu, lambda, addpar = NULL)

Arguments

time

Time points (x-axes) for which the function values will be returned.

A

Maximum of the curve. If a vector is provided only the first entry is used.

mu

Maximum slope. If a vector is provided only the first entry is used.

lambda

Lag-phase. If a vector is provided only the first entry is used.

addpar

Additional parameters have no effect in this type of model. They belong to the standard model description in grofit and are initialized as addpar=NULL in the function header.

Details

The function follows the parametrization

A/(1+exp((4 mu/A)(lambda-t)+2))

Value

Numeric vector giving the values of logistic growth law for numeric input vector time.

Examples

1
2
3
x <- 1:30
y <- logistic(x, 10, 2, 5)
plot(x,y)

grofit documentation built on May 30, 2017, 4:08 a.m.