exp3: Parallel or double first order exponential

Description Usage Arguments Value Author(s) References Examples

View source: R/exponential.R

Description

Parallel or double first order exponential. This is equation 1.3 in Table S.1 referenced in the paper below.

Usage

1
exp3(time, Yo, rate1, rate2, fraction)

Arguments

time

a numeric vector of values at which to evaluate the model.

Yo

a numeric parameter representing the asymptote.

rate1

first rate

rate2

second rate

fraction

Fraction (0-1) which determines the size of each pool

Value

a numeric vector of length equal to the inputs

Author(s)

Fernando E. Miguez Sotiris Archontoulis

References

Nonlinear Regression Models and Applications in Agricultural Research. Sotirios V. Archontoulis and Fernando E. Miguez. Agronomy Journal. doi: 10.2134/agronj2012.0506

Examples

1
2
3
4
5
6
7
require(lattice)
## Set parameter values and plot the relationship
time <- seq(0, 100,5)
ans1 <- exp3(time, Yo=1, rate1=0.01, rate2=0.05, fraction=0.3)
ans2 <- exp3(time, Yo=1, rate1=0.01, rate2=0.05, fraction=0.1)
ans3 <- exp3(time, Yo=1, rate1=0.01, rate2=0.05, fraction=0.9)
xyplot(ans1 + ans2 + ans3 ~ time, type="l", auto.key=TRUE, ylab = "text", xlab = "time")

nlraa documentation built on May 2, 2019, 5 p.m.