exp_decay_pl {OptimModel} | R Documentation |
Three-parameter exponential decay with initial plateau, gradient, starting values, and back-calculation functions
Description
Three-parameter exponential decay with initial plateau, gradient, starting values, and back-calculation functions.
Usage
exp_decay_pl(theta, x)
Arguments
theta |
Vector of four parameters: (x0, yMax, yMin, k). See details. |
x |
Vector of concentrations. |
Details
The three-parameter exponential decay with initial plateau model is given by whenever
otherwise
where is an inflection point between plateau and exponential decay curve,
(min response),
(maximum response), and
is the shape parameter.
Value
Let N = length(x). Then
exp_decay_pl(theta, x) returns a numeric vector of length N.
attr(exp_decay_pl, "gradient")(theta, x) returns an N x 4 matrix.
attr(exp_decay_pl, "start")(x, y) returns a numeric vector of length 4 with starting values for (x0, yMax, yMin, k).
attr(exp_decay_pl, "backsolve")(theta, y) returns a numeric vector of length=length(y).
Author(s)
Steven Novick
See Also
Examples
set.seed(100)
x = 2^(-4:4)
theta = c(0.4, 75, 10, log(3))
y = exp_decay_pl(theta, x) + rnorm( length(x), mean=0, sd=1 )
attr(exp_decay_pl, "gradient")(theta, x)
attr(exp_decay_pl, "start")(x, y)
attr(exp_decay_pl, "backsolve")(theta, 38)