Catchability and fishing selectivity curves
Source:R/formula.R, R/selectivity-curves.R
catchability_curves.RdUse these terms in index_settings$q_form or F_settings$mu_form to
describe how catchability or mean fishing mortality varies with age or size.
mono() fits non-decreasing steps, including exact plateaus.
logistic() fits a smooth rising curve. normal() fits a symmetric dome
and double_logistic() gives the two sides of the dome separate slopes.
Use for_fleet() or for_survey() to give different fleets or surveys their
own curves.
Details
Include the curves as additive terms in formulas. Ordinary terms provide the baseline. The parametric curves multiply mean F or multiply q after its inverse link, so a logit link keeps q below one.
Flexible steps: mono()
Numeric values are ordered increasingly; factors (including ordered factors) use their declared levels. Supply factor levels in the scientifically intended order.
The first represented level has no increment. Subsequent link-scale levels add
cumulative non-negative increments dq, fitted directly with a lower bound
of zero by fit_tam(). These are increments on the log-q scale by default,
or logit-q when index_settings$q_link = "logit", not absolute q.
Both links preserve non-decreasing q. Steps start at 0.05.
A zero step gives an exact plateau between separate
levels at a finite parameter value; pooled levels also retain identical q.
When optimizing nll_fun() directly, supply the same zero lower bounds for
dq. Standard errors describe local curvature on the increment scale;
inference at an active boundary need not follow a symmetric normal law.
by gives each group independent steps, using only levels represented in
that group, in their declared order. Each group needs at least two levels.
Baselines come from ordinary formula terms: ~ mono(x, by = survey) shares
an intercept, whereas ~ survey + mono(x, by = survey) gives separate
survey baselines. Other ordinary covariates can modify q, so monotonicity
holds with those covariates held constant. Interactions involving mono(),
transformed arguments, and ordinary effects of the same x are unsupported.
Smooth selectivity: logistic()
For numeric age or size, the curve is
\(S(x) = 1 / (1 + \exp\{-k(x-a_{50})\})\), with positive slope \(k\).
The midpoint \(a_{50}\) is the age/size at half the asymptotic selectivity.
Ordinary terms supply its baseline: ~ survey + logistic(age, by = survey)
gives survey-specific baselines and curves. Each curve needs at least three
observed x values. Numeric by and interactions are unsupported.
Midpoint and positive slope are fixed effects, not Gaussian random effects.
Redundant curves, such as logistic plus an unrestricted factor of the same
age, are rejected. See formula_effects for variation around these curves.
Fitting warns if the midpoint lies outside the observed age/size range and
its 95% interval is wider than that range. Maximum catchability and curve
shape may then be difficult to distinguish. Uncertainty advisories require
a successful positive-definite uncertainty calculation; failures are reported
separately by the numerical convergence checks.
Symmetric dome with normal()
The normal-shaped curve is
\(S(x) = \exp\{-\tfrac{1}{2}[(x-a_{peak})/\sigma]^2\}\).
It estimates a peak location \(a_{peak}\) and a positive width
\(\sigma\) in the units of x. The curve reaches one at its peak and
falls to about 0.61 one width away on either side. The baseline is the
mean F or q at the peak with other covariates held constant.
Each curve needs at least three observed x values.
Dome with double_logistic()
The four-parameter curve follows WHAM's raw product:
$$S(x)=\frac{1}{1+\exp\{-(x-a_{50,up})/k_{up}\}}
\frac{1}{1+\exp\{(x-a_{50,down})/k_{down}\}},$$
with positive \(k_{up},k_{down}\). The two midpoints can occur in either
order. The peak of the product can fall below one, so the baseline acts as
a scale multiplier. Sparse tails and alternative parameter combinations
can yield weak or multimodal estimates. Each curve needs at least five
observed x values.
WHAM evaluates the curve at consecutive age indices starting from one.
tinyAM uses the numeric coordinates in x.
Mean fishing mortality
Mean F curves support F_settings$process = "off", "iid" or "ar1".
Ordinary terms provide the baseline F. One curve is allowed
on each set of applicable rows; for_fleet() can give fleets different curves.
Its numeric coordinate must be age or an age-derived catch-table column
constant across years at each age within the fleet. Categorical by groups
may have separate curves. M mean curves are not enabled.
For mono, \(\log\mu_F = X\beta + C d\), where C contains cumulative
indicators and the directly fitted dmu_f increments satisfy \(d\geq0\).
Parametric curves use \(\log\mu_F = X\beta + \log S(x)\) and have their
own shape parameters separate from q curves. With the residual process off,
F equals this mean. Otherwise realized F fluctuates around it.
mu_F is the exponential of expected log F, rather than an arithmetic
average over lognormal process draws.
Static curves are rejected with RW/correlated-RW residuals because they
cancel from the increments. Gaussian structured mean terms retain their
existing IID-residual or no-residual-process restriction, including with a curve.
dmu_f has the same zero bounds and boundary-inference limitations as dq.
tidy_pop() reports mean-F profiles with joint RTMB-derived uncertainty.
References
Miller, T. J. and Stock, B. C., WHAM, src/selectivity.hpp,
get_selAA(), double-logistic model 3, revision
ffcbfd093161e8210aa20716933975191b661807 (GPL-3).
https://github.com/timjmiller/wham/blob/ffcbfd093161e8210aa20716933975191b661807/src/selectivity.hpp
Examples
~q_block # ordinary unconstrained q
#> ~q_block
#> <environment: 0x629746a2b290>
~ mono(q_block)
#> ~mono(q_block)
#> <environment: 0x629746a2b290>
~ survey + mono(q_block, by = survey)
#> ~survey + mono(q_block, by = survey)
#> <environment: 0x629746a2b290>
~ survey + logistic(age, by = survey)
#> ~survey + logistic(age, by = survey)
#> <environment: 0x629746a2b290>
~ survey + double_logistic(age, by = survey)
#> ~survey + double_logistic(age, by = survey)
#> <environment: 0x629746a2b290>
~ 0 + for_fleet("Trawl", ~ logistic(age)) +
for_fleet("Gillnet", ~ normal(age))
#> ~0 + for_fleet("Trawl", ~logistic(age)) + for_fleet("Gillnet",
#> ~normal(age))
#> <environment: 0x629746a2b290>