An R package to stochastically forecast parameter values for mixed fisheries models from historic observations. Simple state-space time-series models are fitted to historic fishing fleet parameter observations and future values are stochastically projected from the fitted latent process. MixUncertainty allows for the easy conditioning of fleet structures with uncertainty around three key parameters:
- catchability of each stock for each metier (catchability)
- proportional share of fleet effort across metiers (effort-share)
- proportional share of stock quota across fleets (quota-share)
MixUncertainty uses FLR libraries. Fleet data are expected to follow the FLFleet
(s), FLMetier
(s), FLCatch
(es) hierarchy defined by the FLFleet
package. Uncertainty conditioning methods depend on the TMB
package. Optional figures are generated using tidyr
, plyr
, ggplot2
and cowplot
.
MixUncertainty can be installed using the 'devtools' package
install.packages("devtools")
devtools::install_github("pacematt/MixUncertainty/MixUncertainty")
The example below uses a simple synthetic data set containing two fleets, three metiers and two stocks. Historic observations of catchability, effort-share and landings numbers are available for years 1 to 10, and estimates of future catchability and effort-share in years 11 and 12 are a simple mean of values for years 8 to 10.
## load package
library(MixUncertainty)
## load example dataset
data("example_fleets")
## check fleet data dimensions and structure
dim(example_fleets)
Fit simple state-space time-series model to 10 years of historic observations. Specify the data years and forecasts should extend to year 2022.
out1 <- uncertainty_catchability(example_fleets, datayear = 2011:2020, TACyear = 2022)
## check model fitting logs for each catch
out1$logs
## check time-series of model fit (maximum likelihood estimate + 95% CI)
out1$plots
## generate figure showing covariance in observations and random draws for two stocks
## harvested by a given metier
diagnostic_catchability(out1$fleets, datayear = 2011:2020, TACyear = 2022,
fl = "I", mt = "1ab", c1 = "A", c2 = "B")
To combine uncertainty around catchability and effort-share conditioning, use the updated fleet object as input.
out2 <- uncertainty_effortshare(out1$fleets, datayear = 2011:2020, TACyear = 2022)
## check model fitting logs for each fleet
out2$logs
## check time-series of model fit (maximum likelihood estimate + 95% CI)
out2$plots
## generate figure showing times-series of historic data and stochastic forecast
diagnostic_effortshare(out2$fleets$I, datayear = 2011:2020, TACyear = 2022)
The historic proportional share of stock quota allocated to each fleet is not typically known and mixed fisheries models typically use the share of stock landings as a proxy for quota-share. If quota-share is NULL
, a time-series model is fitted to the historic proportional share of stock landings.
out3 <- uncertainty_quotashare(out2$fleets, quotashare = NULL, datayear = 2011:2020)
## a three-dimensional array (stock, fleet, iteration)
dim(out3$quotashare)
## check model fitting logs for each fleet
out3$logs
## generate figure showing times-series of historic data and stochastic forecast
out3$plots
## generate figure showing times-series of historic data and stochastic forecast
diagnostic_quotashare(fleets = out2$fleets, quotashare = out3$quotashare, stk = "B",
datayear = 2011:2020)
Within a given metier, catchability might be expected to co-vary among stocks, reflecting how changes in gear efficiency might have correlated impacts on stocks with similar morphologies and life-histories. The underlying vector of "true" catchabilities
In cases of model convergence issues, the model is simplified by fixing covariances to zero and therefore relaxing the assumption of multivariate dependency in process noise.
Metier effort-share and fleet quota-share are both compositional time-series. The data at each time increment are a vector
If all observations are non-zero, then the multinomial logit transformed expectation
TMB
by default, and we use code by Trijoulet et al. (2023)1.
One short-coming is that the Dirichlet distribution cannot accommodate zero observations. Hence, when data contain zero observations, a hurdle approach is used to model the observation process and an AR1 process is used to model the expectation. The latent AR1 process is similar to the model defined for catchability:
The hurdle observation process comprises Dirichlet observation noise for non-zero observations, while the incidence of non-zero observations follows a Bernoulli distribution with a probability
Similar to models for catchability, in cases of convergence issues, the models are simplified by fixing covariances to zero and therefore relaxing the assumption of multivariate dependency in process noise.
Footnotes
-
Trijoulet, V., Albertsen, C.M., Kristensen, K., Legault C.M., Miller T.J., Nielsen, A., (2023). Model validation for compositional data in stock assessment models: calculating residuals with correct properties Fisheries Research, Volume 257: 106487 DOI: 10.1016/j.fishres.2022.106487. ↩