R/set_L.R
set_L.RdSpecify model and parameter configuration for "extra" mortality not directly attributed to natural mortality
set_L(input, L)list containing data, parameters, map, and random elements (output from wham::prepare_wham_input)
(optional) list specifying "extra" mortality options: model, random effects, initial values, and parameters to fix (see details)
L specifies estimation options for "extra" mortality.
If NULL, This mortality source is not used.
L is a list with the following entries:
length = n_regions. "extra" mortality model options are:
(default) no extra mortality for this region.
estimate a single mean mortality for the region shared across all ages
estimate independent random effects over years, for the region
estimate random effect correlated over years, for the region
Initial/mean L-at-region
Initial standard deviation by region value to use for the L random effects. Values are not used if L$model = "none".
Initial correlation values to use for the L random effects. If unspecified all initial values are 0