Resolve a modular selectivity penalty weight vector
resolve_sel_pen_wts.RdConverts a user-supplied selectivity penalty weight specification into the
complete named weight vector consumed by
Get_Selex_Smoothness_Penalty.
Arguments
- pen_wts
NULL, or a named numeric vector/list giving independent weights for any subset of"smooth_bin_curve","smooth_bin_diff","smooth_yr_diff","smooth_yr_curve","smooth_dome","smooth_mean_center". Any name not supplied defaults to0. Each weight is either a scalar applied to every year, or a vector with one value per model year, which lets a penalty act only in some years or act with a different strength in each. The list may also have"bin_range", a length-two vector giving the first and last age or length bin the penalties apply over; the default of every bin is what a missingbin_rangereproduces.- n_fleets
Integer. Number of fleets the specification covers. A single named specification is applied to every fleet; an unnamed list of length
n_fleetsgives each fleet its own.