Density and random generation of an exponential growth model distribution.
dExponentialGrowth(x, a, b, r, log)rExponentialGrowth(n, a, b, r)
Arguments
x: vector of calendar years (in BP).
a: lower (earliest) limit of the distribution (in BP).
b: upper (latest) limit of the distribution (in BP).
r: intrinsic growth rate.
log: TRUE or 1 to return log probability. FALSE or 0 to return probability.
n: number of random draws. Currently only n = 1 is supported, but the argument exists for standardization of "r" functions.
Returns
For dExponentialGrowth: the probability (or likelihood) or log probability of an observed date x (in Cal BP). For rExponentialGrowth a simulated date in Cal BP.
Examples
p = list(r=0.002)modelPlot(model = dExponentialGrowth,a=6000,b=4000,params=p,alpha =1)