time {diversitree} | R Documentation |
Utility functions for working with time-dependent models.
constant.t(t, c) linear.t(t, c, m) exponential.t(t, y0, y1, r) sigmoid.t(t, y0, y1, tmid, r) stepf.t(t, y0, y1, tc) make.pars.t(functions, cache=NULL, check.negative.const=TRUE, check.negative.var=TRUE)
t |
Time |
c |
Constant. For |
m |
Slope |
y0 |
y value at time 0 ( |
y1 |
y value approached as t tends to negative infinity |
r |
Rate at which exponential decay occurs or sigmoid changes - higher values are steeper |
tmid |
Midpoint (inflection point) of sigmoid |
tc |
"Critical time" at which y changes from |
functions |
A list of functions with |
cache |
Internal use – please leave |
check.negative.const, check.negative.var |
Logicals, indicating if negative parameters should be checked for, for time-constant and time-varying parameters respectively. |
The linear function (linear.t
) will go to zero wherever
negative. This may not always be desired, but is often useful for
models of rates.
Richard G. FitzJohn