make_Lefkovitch_matrix: Create a Lefkovitch stage-structured matrix

Description Usage Arguments Value

View source: R/mpm_creation.R

Description

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.

Usage

1
2
3
make_Lefkovitch_matrix(stage_table, survival = stage_table$survival,
  maternity = stage_table$maternity,
  maturation = stage_table$maturation, model = c("post", "pre"))

Arguments

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"

Value

A matrix representing the Lefkovitch MPM.


BruceKendall/mpmtools documentation built on May 21, 2019, 1:42 a.m.