vital_rates {Rage} | R Documentation |
Derive mean vital rates from a matrix population model
Description
Derive mean vital rates corresponding to separate demographic processes from a matrix population model. Specifically, this function decomposes vital rates of survival, progression, retrogression, sexual reproduction and clonal reproduction, with various options for weighting and grouping stages of the life cycle.
Usage
vital_rates(
matU,
matF,
matC = NULL,
weights = NULL,
splitStages = "all",
matrixStages = NULL
)
Arguments
matU |
The survival component of a matrix population model (i.e., a square projection matrix reflecting survival-related transitions; e.g. progression, stasis, and retrogression). |
matF |
The sexual component of a matrix population model (i.e., a square projection matrix reflecting transitions due to sexual reproduction) |
matC |
The clonal component of a matrix population model (i.e., a square
projection matrix reflecting transitions due to clonal reproduction).
Defaults to |
weights |
Vector of stage-specific weights to apply while averaging
vital rates. Default is |
splitStages |
What groups should vital rates be averaged over. Either:
|
matrixStages |
Vector of stage-specific standardized matrix classes
("prop" for propagule, "active", and/or "dorm" for dormant). Only used if
|
Value
A list of averaged vital rates.
Author(s)
Roberto Salguero-Gomez <rob.salguero@zoo.ox.ac.uk>
References
Caswell, H. 2001. Matrix Population Models: Construction, Analysis, and Interpretation. Sinauer Associates; 2nd edition. ISBN: 978-0878930968
See Also
Other vital rates:
vr_mat
,
vr_vec
,
vr
Examples
matU <- rbind(
c(0.1, 0, 0, 0),
c(0.5, 0.2, 0.1, 0),
c(0, 0.3, 0.3, 0.1),
c(0, 0, 0.5, 0.6)
)
matF <- rbind(
c(0, 0, 1.1, 1.6),
c(0, 0, 0.8, 0.4),
c(0, 0, 0, 0),
c(0, 0, 0, 0)
)
matC <- rbind(
c(0, 0, 0.4, 0.5),
c(0, 0, 0.3, 0.1),
c(0, 0, 0, 0),
c(0, 0, 0, 0)
)
# Vital rate outputs without weights
vital_rates(matU, matF, matC, splitStages = "all")
vital_rates(matU, matF, matC, splitStages = "ontogeny")
# Group vital rates according to specified matrixStages
ms <- c("prop", "active", "active", "active")
vital_rates(matU, matF, matC,
splitStages = "matrixStages",
matrixStages = ms
)
# Vital rate outputs weighted by the stable stage distribution of 'matA'
vital_rates(matU, matF, matC, splitStages = "all", weights = "SSD")