4. Projections and reference points
2026-11-27
Source:vignettes/projections-and-reference-points.Rmd
projections-and-reference-points.RmdThis vignette projects a fitted model forward under alternative fishing mortality and recruitment assumptions:
- Fixed-F projections (including mean historical F)
- Manual and stochastic recruitment in the projection period
- Random recruitment effects
- Visualizing projection uncertainty across scenarios
- The available harvest control rules
Setup
library(Rceattle)
data(BS2017SS)
data(BS2017MS)
# Set the terminal projection year
BS2017SS$projyr <- 2060
BS2017MS$projyr <- 2060
# Plot input data
plot_data(BS2017SS)
# Fit baseline single- and multi-species models
ss_run <- fit_mod(
data_list = BS2017SS,
inits = NULL,
file = NULL,
estimateMode = 0,
random_rec = FALSE,
msmMode = 0,
fit_control = fit_control(
phase = TRUE,
verbose = 1))
ms_run <- fit_mod(
data_list = BS2017MS,
inits = ss_run$estimated_params,
file = NULL,
estimateMode = 0,
niter = 5,
random_rec = FALSE,
msmMode = 1,
suitMode = 0,
fit_control = fit_control(
verbose = 1))Fixed-F projections
estimateMode = 2 runs the projection period only,
holding all estimated parameters fixed, under a specified harvest
control rule. build_hcr(HCR = 2, Ftarget = ...) sets a
constant F for each species.
Where several fisheries catch one species,
fleet_control$Proj_F_proportion splits its projected F
across them; the values must sum to 1 per species.
BS2017SS$fleet_control$Proj_F_proportion <- 1 # One fishery fleet per species
BS2017MS$fleet_control$Proj_F_proportion <- 1
ms_run_proj <- fit_mod(
data_list = BS2017MS,
inits = ms_run$estimated_params,
file = NULL,
estimateMode = 2,
HCR = build_hcr(HCR = "ConstantF",
Ftarget = c(0.2342936, 0.513, 0.0774777)),
niter = 5,
random_rec = FALSE,
msmMode = 1,
suitMode = 0,
fit_control = fit_control(
verbose = 1))
plot_catch(ms_run_proj, incl_proj = TRUE)Recruitment in the projection period
Manual recruitment deviations
Projection recruitment deviations are in the parameter list, so you
can overwrite them before projecting. Projected recruitment uses them
only under build_srr(proj_mean_rec = FALSE); the default
projects mean recruitment over the hindcast (avg_R)
whatever the deviations. With proj_mean_rec = FALSE, a
deviation of 0 projects R0, which on BS2017MS is 26–37%
below avg_R, so this scenario projects lower recruitment
than ms_run even with zero deviations.
estimateMode = 3 evaluates the model without re-estimating
anything.
nyrs <- BS2017MS$endyr - BS2017MS$styr + 1
nyrs_proj <- BS2017MS$projyr - BS2017MS$styr + 1
yrs_proj <- (nyrs + 1):nyrs_proj
# Replace future rec_devs with draws from N(0, 0.707)
ms_run$estimated_params$rec_dev[, yrs_proj] <- stats::rnorm(
n = length(ms_run$estimated_params$rec_dev[, yrs_proj]),
mean = 0,
sd = 0.707
)
ms_run_proj2 <- fit_mod(
data_list = BS2017MS,
inits = ms_run$estimated_params,
file = NULL,
estimateMode = 3, # Evaluate only, do not re-estimate
recFun = build_srr(proj_mean_rec = FALSE), # Project from rec_dev
niter = 5,
random_rec = FALSE,
msmMode = 1,
suitMode = 0,
fit_control = fit_control(
verbose = 1))Stochastic recruitment via sample_rec()
sample_rec() replaces the projection deviations with
ones resampled from the hindcast and re-runs the model, with the
hindcast held fixed, under the model’s own build_srr()
settings and harvest control rule, so it starts from
ms_run_proj2 (fitted with
proj_mean_rec = FALSE). rec_trend adds a
linear trend: rec_trend = -0.5 imposes a 50% decline in
mean recruitment by the end of the projection.
ms_run_proj3 <- sample_rec(
object = ms_run_proj2, # Fitted with proj_mean_rec = FALSE
sample_rec = TRUE,
update_model = TRUE,
rec_trend = -0.5 # 50% decline in mean recruitment
)Comparing projection scenarios
Only “Constant F” fishes. “No fishing” and “Constant F” project
avg_R. “Stochastic recruitment” draws its deviations around
R0 (see above), so compare its shape rather than its level against “No
fishing”. “Declining recruitment” resamples the hindcast deviations,
which average back to avg_R, so it starts near “No
fishing”.
mod_list <- list(ms_run, ms_run_proj, ms_run_proj2, ms_run_proj3)
mod_names <- c(
"No fishing",
"Constant F",
"Stochastic recruitment",
"Declining recruitment"
)
plot_biomass(Rceattle = mod_list, model_names = mod_names, incl_proj = TRUE)
plot_recruitment(Rceattle = mod_list, model_names = mod_names, incl_proj = TRUE)
plot_catch(Rceattle = mod_list, model_names = mod_names, incl_proj = TRUE)Random recruitment effects
random_rec = TRUE treats log-recruitment deviations as
random effects, marginalized via the Laplace approximation, rather than
as penalized fixed effects, and estimates their standard deviation,
sigma_R (R_log_sd holds its log); otherwise sigma_R is
fixed at its starting value: sigma_rec, unless
inits supply one. Under a non-equilibrium start (the
default initMode), the initial-abundance deviations are
random effects too. Projection-year deviations are not estimated under
either setting, so random_rec adds no recruitment
variability to the projections.
ss_re <- fit_mod(
data_list = BS2017SS,
inits = NULL,
file = NULL,
estimateMode = 0,
random_rec = TRUE,
msmMode = 0,
fit_control = fit_control(
phase = FALSE,
verbose = 1))
# Compare fixed vs. random effects recruitment uncertainty
plot_recruitment(
Rceattle = list(ss_run, ss_re),
model_names = c("Fixed effects", "Random effects"),
add_ci = TRUE
)Available harvest control rules
fit_mod(HCR = build_hcr(...)) sets the rule;
?build_hcr has the parameters. Moffitt et al. (2016)
compare options for multi-species reference points.
| Value | String | Description | Multi-species? |
|---|---|---|---|
| 0 | "NoFishing" |
No fishing, estimate hindcast only | Yes |
| 1 | "CMSY" |
CMSY: maximize catch across all species (can constrain depletion ≥
Plimit) |
Yes |
| 2 | "ConstantF" |
Constant F set at Ftarget for each species |
Yes |
| 3 | "ConstantFSSB" |
F that achieves Ftarget% of SB0 at the end
of the projection |
Yes |
| 4 | "ConstantFSPR" |
Constant F_SPR set at Ftarget; can be scaled by
Fmult (NEFSC convention) |
No |
| 5 | "NPFMC" |
NPFMC Tier 3 SPR-based HCR (Ftarget,
Flimit, Ptarget, Plimit,
Alpha) |
No |
| 6 | "PFMC" |
PFMC Category 1 40-10 ACL rule with uncertainty buffer
(Flimit, Ptarget, Plimit,
Pstar, Sigma; 40-10 needs
Ptarget = 0.40, Plimit = 0.10) |
Yes |
| 7 | "SESSF" |
SESSF Tier 1 SPR-based HCR | No |
# Example: NPFMC Tier 3 control rule (single-species only)
ss_run_tier3 <- fit_mod(
data_list = BS2017SS,
inits = ss_run$estimated_params,
file = NULL,
estimateMode = 2,
HCR = build_hcr(HCR = "NPFMC",
Ftarget = 0.40, # F40%
Flimit = 0.35, # F35%
Ptarget = 0.40,
Plimit = 0.20,
Alpha = 0.05),
random_rec = FALSE,
msmMode = 0,
fit_control = fit_control(
verbose = 1))For closed-loop testing of control rules across many simulated
trajectories, see vignette("hcrs-and-mses").