relative_catch()
View source ↗On this page
Model catch in numbers and in weight for each time step, each divided by its mean over the time steps, for a comparison of trends with reported catch.
Usage
relative_catch(fit, years = NULL)
Arguments
| Argument | Default | Description |
|---|---|---|
fit | required | An ACL or ALSCL fit, or a saved fit read with |
years | NULL | Time steps over which the mean is calculated, as values of |
Value
A data frame with one row per time step and the columns year (as in fit$year), catch_number and catch_weight (catch divided by its mean over years; no unit), extrapolated (TRUE for time steps whose catch is a prediction) and numerical_ok (the verdict of the numerical checks of the fit).
Details
ACL and ALSCL are fitted to a survey index alone. Such a fit has no information on the absolute level of catch or of the fishing mortality rate (F). The model catch follows from the Baranov catch equation with the estimated F and abundance, and the level of both depends on the assumed natural mortality rate (M) and the assumed survey catchability. Total mortality is estimated from the decline of cohorts in the survey, F is total mortality minus the assumed M, and abundance is the survey index divided by the assumed catchability. Only the trend of the model catch should be compared with reported catch, and the function therefore returns relative values only.
No observation informs F in the terminal time step (see extract_estimates()). Catch in that time step is a prediction and has extrapolated = TRUE. When the last time steps have no positive survey observation, catch from the last time step with an observation onwards is a prediction as well. These time steps are included in the mean unless years excludes them.
ALSCL reports catch in weight. For ACL it is calculated as catch in numbers at age multiplied by mean weight at age, where mean weight at age is the weight at length supplied to the fit averaged over the age-length key. For an ACL result with neither a TMB object nor stored inputs and settings, the weights are unavailable and catch_weight is NA.
Additional details from R help
ACL and ALSCL are fitted to a survey index alone. Such a fit has no information on the absolute level of catch or of the fishing mortality rate (F). The model catch follows from the Baranov catch equation with the estimated F and abundance, and the level of both depends on the assumed natural mortality rate (M) and the assumed survey catchability. Total mortality is estimated from the decline of cohorts in the survey, F is total mortality minus the assumed M, and abundance is the survey index divided by the assumed catchability. Only the trend of the model catch should be compared with reported catch, and the function therefore returns relative values only.
No observation informs F in the last time step (see
extract_estimates()). Catch in that time step is a prediction and has
extrapolated = TRUE. When the last time steps have no positive survey
observation, catch from the last time step with an observation onwards
is a prediction as well. These time steps are included in the mean
unless years excludes them.
ALSCL reports catch in weight. For ACL it is calculated as catch in numbers at age multiplied by mean weight at age, where mean weight at age is the weight at length supplied to the fit averaged over the age-length key. For an ACL result with neither a live TMB object nor a stored recipe, the weights are unavailable and catch_weight is NA.
Examples
Run the setup before the example. Fitting examples require an R-compatible C++ toolchain; simulation and export examples may write files.
Example setup
library(ALSCL)
library(ggplot2)
library(patchwork)
data("YTF_example")
x <- YTF_example
inputs <- x[c("data.CatL", "data.wgt", "data.mat")]
dat <- x$data.CatL
a <- run_acl(x, silent = TRUE)
b <- run_alscl(x, silent = TRUE)
# Use objects defined above
catch <- relative_catch(a)
head(catch)
# Mean taken over the first ten time steps only
head(relative_catch(a, years = a$year[1:10]))