Description Usage Arguments Examples
Produces the Matrix Population Model matrix for a continuous time structured population model, to be applied in a linear ODE. If there is more than one population, returns a list of matrices, or one block-diagonal matrix created by the combination.
1 |
data |
Either the result of a simulation, to extract the parameters from, or a data.frame containing the parameters. |
ns |
an array of numbers of stages. Use when |
combine.matrices |
Logical. Combine the matrices into a single, multi-population matrix? |
1 2 3 4 5 6 7 8 9 10 | # example 1
mat.model(create.parameters(n=4))
# example 2
data(malthusian)
mat.model(malthusian)
# example 3
data(twospecies)
mat.model(twospecies,combine.matrices=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.