Description Usage Arguments Details Value Note Author(s) References See Also Examples
Simulates structured population by projection matrix
1 |
t |
projection times |
x0 |
initial condition |
proj.mat |
projection matrix |
vars.plot |
variables to plot |
tunit |
units for time |
xunit |
units for population density |
pdfout |
switch to produce pdf files, (optional, default F) |
To perform the simulation, we write a loop for time to iterate the multiplication of the matrix proj.mat by the state vector x. As time progresses in the loop, it calculates the total population xtot, the proportions xp in each class with respect to the total, and an approximation lambda to the dominant eigenvalue as the ratio of the total population at adjacent times, and the population is scaled with respect to the last class. Note that the calculation of lambda is the ratio of current year to previous.
x |
results for all age classes |
xp |
results for all age classes, as proportion of total |
xs |
results for all age classes, as proportion of last class |
lambda |
ratio of two consecutive values of xtot |
xtot |
total population |
Input files are in 'datafiles.zip' in directory 'datafiles' and organized by chapters of Acevedo (2012). Input files are required to run the examples below.
Miguel F. Acevedo Acevedo@unt.edu
Acevedo M.F. 2012. Simulation of Ecological and Environmental Models. CRC Press.
Simulation functions sim.comp
, sim.mruns
, sim.rnum
, sim
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.