Map recruitment regional apportionment parameters
Source:R/setup_recruitment.R
do_rec_region_prop_mapping.RdBuilds the factor map for rec_region_prop_pars [n_pop x
(n_regions - 1)], the logit-scale share of recruits per region, under a softmax
with one reference region omitted. Both the parameter and its map are
NULL when n_regions = 1. Called by Setup_Mod_Rec.
Arguments
- input_list
Named list with
$data,$parand$map. Requires$data$n_pop,$data$n_regionsand$data$natal_region.- rec_region_prop_spec
Dispersal structure.
"no_dispersal"assigns recruits entirely to their natal region, overwriting the starting values with-20for non-natal regions and+20for the natal region whennatal_region > 1, and mapping every element toNA.NULLestimates all independently. Both requiren_regions > 1.