Map recruitment seasonal apportionment parameters
Source:R/setup_recruitment.R
do_rec_seas_prop_mapping.RdBuilds the factor map for rec_seas_prop_pars [n_pop x (n_seas - 1)],
the logit-scale share of annual recruitment per season, under a softmax with one
reference season omitted. Called by Setup_Mod_Rec. When
rec_lag = 0 and spawn_seas > 1 the seasons before spawn_seas
are fixed at zero by a restricted softmax in the model, so the trailing unused
columns are forced to NA whatever rec_seas_prop_spec asks for.
Arguments
- input_list
Named list with
$data,$parand$map. Requires$data$n_pop,$data$n_seasand$data$use_fixed_rec_seas_prop.- rec_seas_prop_spec
Seasonal apportionment structure.
"est_shared_pop"estimates one set ofn_seas - 1parameters for every population and is only valid whenn_seas > 1."fix"holds every parameter at its starting value.NULLestimates alln_pop x (n_seas - 1)independently. The first and last resetuse_fixed_rec_seas_propto0with a warning if it was1.