Helper function for lumped population strata (counts)
Source:R/utils.R
strata_to_residency_counts.Rd
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.
Value
a list with three elements:
J
: the residency matrix mapping elements inH
to patchesH
: the overall population distribution over strata and patches