Give a selected fishery its own F relationship, or a selected survey its own catchability relationship, while keeping one formula. Ordinary terms outside the marker can share effects across groups.
Details
Use for_fleet() in F_settings$mu_form and for_survey() in
index_settings$q_form. Each inner formula has its own intercept. Use an
outer ~ 0 + ... when the inner formulas supply all group baselines.
Scoped contributions are zero outside their selected rows; this means no
contribution to log F or the q predictor, rather than zero fishing mortality.
Joint design checks reject redundant intercepts and age relationships.
Supported smooth_formulas are constructed within the selected rows;
groups with different reporting ages retain their own bases.
Examples
~ 0 + for_fleet("Trawl", ~ factor(year) + logistic(age)) +
for_fleet("Gillnet", ~ factor(year) + factor(age))
#> ~0 + for_fleet("Trawl", ~factor(year) + logistic(age)) + for_fleet("Gillnet",
#> ~factor(year) + factor(age))
#> <environment: 0x5edf85a4f1b0>
~ 0 + for_survey("RV", ~ logistic(age)) +
for_survey("Sentinel", ~ factor(age))
#> ~0 + for_survey("RV", ~logistic(age)) + for_survey("Sentinel",
#> ~factor(age))
#> <environment: 0x5edf85a4f1b0>