Learn R Programming

grofit (version 1.1.1-1)

richards: Richards growth law

Description

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

Usage

richards(time, A, mu, lambda, addpar)

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
Numeric vector of size one, corresponding to shape parameter $\nu$.

Value

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

Details

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

Examples

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

Run the code above in your browser using DataLab