strata_to_residency_counts | R Documentation |
If input is given as a matrix of population counts per strata (columns) and patch (rows), this function calculates the residency matrix and population size for the overall stratification of both residency and strata.
strata_to_residency_counts(H_counts)
H_counts |
a matrix of population counts |
a list with three elements:
J
: the residency matrix mapping elements in H
to patches
H
: the overall population distribution over strata and patches
# taken from package tests J <- matrix( c(0.3, 0.5, 0.2, 0.1, 0.6, 0.3), nrow = 3, ncol = 2, byrow = FALSE ) H <- c(50, 60) H_overall <- J %*% diag(H) residency <- strata_to_residency_proportion(H_strata = H, J_strata = J)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.