Description Usage Arguments Value Examples
View source: R/eigen-analysis.R
Calculates w_1, the eigenvector associated with the dominant eigenvector, which can be interpreted as the stable age/stage/size distribution. The vector is scaled to sum to one. Allows stage-for-age Leslie matrices to be reported by stage for ease of visualization.
1 | stable_stage(A, collapse = FALSE, stages = NULL)
|
A |
Square matrix representing a matrix population model |
collapse |
Should classes in the matrix be collapsed into a smaller number of stage classes? |
stages |
A vector with length equal to the rank of A giving the stage
name for each matrix class. If A is a Leslie matrix created using
|
A vector of the stable stage distribution
1 2 3 4 5 6 7 8 | # Reproduce the model in Crowder et al:
A1 <- make_stage4age_matrix(loggerhead[[2]], approx_method = "AAS")
stable_stage(A1)
# Now do the Leslie matrix version of the same data
A2 <- make_stage4age_matrix(loggerhead[[2]])
stable_stage(A2) # Age structure
stable_stage(A2, collapse = TRUE) # Stage structure
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.