Learn R Programming

grofit (version 1.1.1-1)

gompertz: Gompertz growth law

Description

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

Usage

gompertz(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.

Value

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

Details

The function follows the parametrization $$y(t)=A\cdot\exp\left[-\exp\left(\frac{\mu\cdot\exp(1)}{A}(\lambda-t)+1\right)\right]$$

Examples

Run this code
x <- 1:30
y <- gompertz(x, 10, 2, 5)
plot(x,y)

Run the code above in your browser using DataLab