ranmilne | R Documentation |
Milne Ceiling model is a stochastic model where the population growth is in the range zero to carrying capacity. It seems to be particularly suitable for small populations which are often close to their carrying capacity, and is much used in metapopulation research (Hanski 2005).
ranmilne(N0, r, sd, K, time = 100, rep = 1) ## S3 method for class 'ranmilne' plot(x, lty = 1, lwd = 1, col = 4, ...) ## S3 method for class 'ranmilne' lines(x, ...) ## S3 method for class 'ranmilne' traj(x, ...)
N0 |
Initial population size(s). |
r, sd |
Normally distributed growth rate and its standard deviation |
K |
Carrying capacity. |
time |
Number of time steps. |
rep |
Number of replicated simulations. |
x |
A |
lty, lwd, col |
Line type, width and colour. |
... |
Other arguments passed to functions. |
The logarithmic population size n at time t is given as n_{t-1} + N(r, s) where N() is a random normal variate with expectation r and standard deviation s. Simulated responses > K are made to K and responses < 0.5 are made to 0 (extinct).
The function returns an object of class "ranmilne"
which is a
list with following items:
traj |
Simulated results as a |
N0, r, sd, K, time, rep |
Model parameters. |
call |
Function call. |
The current version returns the simulated population size as a real number. It may be that the return value should be an integer, but this was not yet checked.
Jari Oksanen
Hanski, I (2005) The Shrinking World: Ecological Consequences of Habitat Loss. International Ecological Institute, 307 p.
ranlogist
.
sim <- ranmilne(50, r = 0.5, sd = 1, K = 50, rep = 10) sim plot(sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.