Description Usage Arguments Value
In a Lefkovitch model, individuals may either stay in the current stage or transition to the next stage, with the rate of moving from stage i to stage i+1, conditional on survival, being given as g_i (commonly called "growth" but really representing "maturation"). This function creates a Lefkovitch matrix using user-supplied information on maturation rates as well as stage-specific survival and maternity rates.
1 2 3 | make_Lefkovitch_matrix(stage_table, survival = stage_table$survival,
maternity = stage_table$maternity,
maturation = stage_table$maturation, model = c("post", "pre"))
|
stage_table |
Either a vector of stage names or a data frame with columns "stage_name", "survival", "maternity", and "maturation". In the latter case the next three arguments do not need to be provided |
survival |
A vector of stage-specific survival, on a per-timestep basis |
maternity |
A vector of stage-specific maternities (number of offspring produced by an individual in a given stage) |
maturation |
A vector of the maturation rate, g_i, representing the fraction of individuals that (conditional on survival) should move on to the next stage. If the stage only lasts one timestep (all surviving individuals mature) then use a value of 1. |
model |
Whether the matrix should represent a prebreeding ("pre") or postbreeding ("post") census model. Defaults to "post" |
A matrix representing the Lefkovitch MPM.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.