knobi

library(knobi)

In this vignette we illustrate the use of the knobi package through a real case example. For this purpose, the formulation of the Known Biomass Production Models (KBPMs) is explained and then each of the functions of the package is described and applied to a real case study.

Please note that this vignette does not cover all possibilities for each function in this package (i.e., not all arguments or combinations of arguments are used). Instead, it focuses on describing the basic usage of the functions, with some alternatives included for certain functions. For more detailed information, please refer to the help documentation for each function in the package.

1. KBPM formulation

For a correct understanding of KBPM models, we start reviewing the surplus production models (SPMs) framework and then based on this background the KBPM formulation is described.

 

Traditional SPMs are one of the most widely used data-limited (or data moderated) assessment models. Their general structure relates directly to Russell’s formulation of the stock dynamics:

\[B_{t+1}=B_t + f(B_t)-C_t\] Eq. (1)

where Bt is the stock biomass at the beginning of year t, Ct is the biomass caught during year t and f(Bt) is the biomass production function.

There are many formulations of the biomass production function f(Bt), among which the general Pella-Tomlinson (1969) is widely used:

\[f(B_t) = \frac{r}{p}{B_{t}} \left(1-\left( \frac{B_{t}}{K}\right) ^{p}\right)\] Eq. (2)

where r is the intrinsic population growth rate, K is the carrying capacity and p is the asymmetry parameter, which allows non-symmetrical production curves and, consequently, maximum production different from K/2. Schaefer (1954) model corresponds to p=1 (symmetric production curve and \(SP_{max}=K/2\)).

SPMs link the population dynamics, i.e. Eq. (1) with the observations through the relation between the catch and the stock biomass across the catchability coefficient (q).

\[\hat{I}_t=C_t/E_t=qB_t\] where It is the value of the relative biomass index for year t, notation ˆ denotes an estimated value and q is the catchability coefficient, which scales the modeled stock biomass to match the trends in catch rates.

An alternative line of research based on surplus production models named known-biomass production models (KBPM) was developed (MacCall, 2002). The basis of the KBPM model is the idea that the annual surplus production in an unfished stock is equal to Bt+1-Bt, and that, for a fished stock, the calculation of surplus production depends on catch.

\[SP_t=\overline{B}_{t+1}-\overline{B}_t+C_t\] Eq. (3)

where SPt is the surplus production during year t, Bt is the average biomass or SSB, Bt=(Bt+Bt+1)/2, and Ct represents the catch during year t.

In contrast to the traditional SPMs, KBPMs use as input data a biomass time series, estimated using another stock assessment model, instead of a biomass index.

Once the surplus production is calculated using the known average biomass (of two consecutive years) and the observed catch, the KBPMs are fitted as:

\[SP_{t}= \frac{r}{p}\overline{B}_{t}\left(1-\left( \frac{\overline{B}_{t}}{K}\right) ^{p}\right)\] Eq. (4)

2. knobi package

In this section the knobi package functions are described. More precisely, in each one of the next subsections the following package functions are explained:

  1. knobi_fit: fits the KBPM model (main function).

  2. knobi_env: analyzes the production changes in response to environmental fluctuations.

  3. knobi_retro: carries out the retrospective analysis.

  4. knobi_proj: projects the population and fishery dynamics.

2.1. knobi_fit

This section illustrates the use of the knobi_fit function, which allows us to fit the KBPM model.

For that, the case study of European hake (\(Merluccius\) \(merluccius\)) is used. European hake is a resource of great commercial importance in Atlantic Iberian Waters. This species is assessed by the International Council for the Exploration of the Sea (ICES) in two units: the northern and the southern stocks. For the current illustration we focus on the northern hake unit which covers the subareas 4, 6, and 7, and divisions 3.a, 8.a–b, and 8.d (Greater North Sea, Celtic Seas, and the northern Bay of Biscay).

Creating data argument

The first step is to create the data input object.

The data was downloaded using the icesSAG package and saved in the knobi_dataset under the hake_n object.

data( knobi_dataset)
hake_n <- knobi_dataset$hake_n

Then the data list for knobi_fit is created. Mandatory data are the catch time series and the biomass or SSB time series. However, in this example we also include some additional available information.

As you can see, in the code below, the data input argument is created. Firstly we introduce both, the biomass and spawning stock biomass (SSB) series, then below in the control argument we indicate which of the two series is used in the fit. After that, in the next line of code, we introduce the second data source which are the catches. After introducing the two main sources of information, we can add more details that are used mainly for comparing KBPM results with those derived from the assessment model that produced the SSB estimates (a data-rich model). In this particular case, we add the recruitment series, the value of the reference point \(F_{msy}\) and the years associated to the observed catch time series (if omitted, an increasing sequence from 1 onward will be used).

Details about the optional entries of this argument can be found on the help page.

data <- list(
  SSB = hake_n$SSB, 
  Catch = hake_n$catches,
  F_input = hake_n$F, 
  Recruitment = hake_n$recruitment,
  RP = list( F_MSY = 0.26),           # Provided by ICES        
  years = hake_n$Year )

Creating control object

control list contains a set of settings for the KBPM fit. In this example. it includes the argument pella, which is an optional logical argument where “TRUE” means that Pella-Tomlinson model is fitted instead of the Schaefer one.

 

control <- list( pella = "TRUE")

There is the possibility of defining other control settings such as start_r, start_K or start_p, optional start values of the model parameters \(r\) (intrinsic growth rate), \(K\) (maximum population size) and \(p\) (shape parameter in Pella-Tomlinson model), respectively.

KBPM model fit

After preparing both lists, data and control, we can apply the knobi_fit function over them for fitting the KBPM model.

In addition to the arguments mentioned above, the plot_out=TRUE argument allows the creation of an external folder with the corresponding plots files also displayed in the plot window. We can set the folder name and its directory through the plot_filename and the plot_dir arguments, respectively.

hake_n_results <- knobi_fit( data = data, 
                             control = control,
                             plot_out = FALSE)

Note that if the length of the input catch time series does not match with the SSB length, a warning is returned indicating that the series of catch is reduced so that the fit can be done.

#> Warning in knobi_fit(data, control, plot_out = FALSE): The length of the catch
#> time series is reduced according to biomass or SSB time series length.

As you can see, the following input quantities are plotted: fishing mortality time series, SSB, surplus production and catch time series. Note that in this example we are using control$method=SSB, which means that we are going to operate with the SSB and not with the stock biomass. Plots of catch over fishing mortality, fishing mortality over SSB, and catch over SSB time series with a smooth line from a “loess” regression are also displayed. Plot of input-output time series of fishing mortality is also provided with horizontal lines at fishing mortalities at MSY (two lines representing both input and output). The fishing mortality relative to \(F_{msy}\) is also plotted including a reference horizontal line at 1. The analogous SSB plots are also reported. It is important to mention that, in these cases, inputs are represented in blue and outputs in red, highlighting the case of the SSB, where the absolute value is an input of the model, while the relative SSB (SSB/SSBmsy) depends on the estimation of the reference point, so it is represented in red as well. On the other hand, the fitted surplus production curve is plotted twice with the observed Sp over SSB (first plot) and with the catch over SSB observations (second plot). Finally, a plot with the KBPM fit residuals is shown.

Quantitative results

The formula and the parameter estimates of the fit are printed running the name of the output object.

hake_n_results
#> 
#>  Formula:
#>  SP_t = (r/p)*B_t*(1-(B_t/K)^p) 
#>  
#> Parameter estimates:
#> r  0.6303405 
#> K  529630.1 
#> p  0.25 
#> 

The hake_n_results object is a list containing the following slots: (1) params, that is the estimated parameters in the fit; (2) BRPs, that are the biological reference points estimates; (3) the residuals of the fit; (4) an error_table with the error measures (5) the input list which is an updated version of its input including the annual average biomass, the surplus production and the F estimated time series; (6) the control output which is the input one updated with the information of the plot settings; and (7) the optimx slot with the results provided by the optimizing function. See the help page for a more completed description.

hake_n_results$BRPs
#>            K        B_MSY        F_MSY          MSY     MSYoverK 
#> 5.296301e+05 2.169365e+05 5.042724e-01 1.093951e+05 2.065500e-01

2.3. knobi_env

After carrying out the KBPM fit using knobi_fit, knobi_env function allows us to analyze and model the relationships between the surplus production and the environmental covariable(s) in order to test whether productivity changes in response to environmental fluctuations. The knobi_env procedure can be summarized in three steps:

  1. The correlation analysis between the environmental variable(s) and the KBPM residuals through the Pearson’s correlation or autoregressive models;
  2. The selection of which lagged environmental variable(s) is included in the environmental KBPM models fit;
  3. The KBPM environmental fit.

In step (3) environmental covariables can be included as additive and multiplicative effects in the KBPM base formulation, i.e. in Eq. (4).

  • Additive model:

\[SP_{t}= \frac{r}{p}\overline{B}_{t}\left(1-\left( \frac{\overline{B}_{t}}{K}\right) ^{p}\right) + cX_{t-lag}\overline{B}_{t}\] Eq. (5)

being c the parameter that represent the effect of the lagged environmental variable Xt-lag (t index represents years and \(lag\) represent the response variable \(lag\), as explained below).

  • Multiplicative model:

\[SP_{t}= \frac{r}{p}\overline{B}_{t}\left(1-\left( \frac{\overline{B}_{t}}{K}\right) ^{p}\right)exp^{cX_{t-lag}}\] Eq. (6)

knobi_env inputs are the object returned by knobi_fit and a data object containing, at least, the mandatory environmental information required for the fit: the env argument, which is a data frame containing the values of each one of the environmental variable(s) in one column; and the years argument, which contains the years in which the environmental variable(s) are reported.

In the following example, we create a data frame in which we introduce the years in which the environmental variables are available, which is from 1973 to 2020. Then, we create four columns containing the values of the Sea Surface Temperature (SST), the Sea Bottom Temperature (SBT) and the Atlantic Multidecadal Oscillation (AMO) and the North Atlantic Oscillation (NAO) indices. Finally, we cut the data frame for starting in the first year of the KBPM fit data minus the value of the nlag or lag argument (below, a detailed explanation of this argument is provided).

Env <- knobi_dataset$Env
nlag <- 5
years <- hake_n_results$df$Year

ind <- which(Env[,1]==years[1])
ind1 <- which(Env[,1]==years[length(years)])

Env <- Env[(ind-nlag):ind1,]

Now, we create the data list

data <- list(
  env = data.frame( AMO=Env$AMO, NAO=Env$NAO, SST = Env$SST, SBT = Env$SBT),
  years = Env$years)

In the optional control input list we provide the settings for the environmental fit. In this example, we set nlag=5. This argument specifies the maximum lag of the environmental variable to test in the correlation analysis, meaning that lags less than or equal to nlag (a natural number) are evaluated. This means that correlation between KBPM residuals at time t and Xt-lag, where X the environmental variable and lag takes values from 0 to nlag, is computed. The lagged environmental variable corresponding to the highest correlation with the KBPM residuals is included in the environmental model.

control <- list( nlag = nlag)

Based on the arguments defined above, we apply the function as you can see below. Note that it reports a plot of the correlation analysis between the environmental variable(s) and the base KBPM residuals. Besides, a plot of the fitted values of the base model (no environmental information) and the environmental ones is also displayed. At last, a plot with the Pearson’s residuals for each KBPM model is also reported.

hake_n_environmental <- knobi_env(knobi_results = hake_n_results, 
                                  data = data,    
                                  control = control,
                                  plot_out = FALSE)

Quantitative results

Running the name of the output object the formula and the parameters estimates for both environmental models fit are printed.

hake_n_environmental
#> 
#>  Multiplicative model:
#>  SP_t = (r/p)*B_t*(1-(B_t/K)^p)*exp(c*X_t) 
#>  
#> Parameter estimates:
#> r   0.6736943 
#> K   452443.2 
#> p   0.25 
#> c   0.1972698 
#> 
#> 
#>  Additive model:
#>  SP_t = (r/p)*B_t*(1-(B_t/K)^p)+c*X_t*B_t 
#>  
#> Parameter estimates:
#> r   0.7361245 
#> K   378966.3 
#> p   0.25 
#> c   0.1818522

A detailed description of each slot of the output function’s object is available in the help page. The output object contains the parameter estimates for both models and its reference points estimates, the accuracy measures for each model and the correlation analysis between the environmental variable(s) and the KBPM base residuals, among other results.

From Eq. (5) and Eq. (6) we can derive the formulas that provide the reference points (BRPs). It is important to take into account that in these models the BRPs depend on the value of the environmental covariate (details provided below for each model).

In the case of these environmental models, the estimated BRPs correspond to a value of the scaled environmental variable equal to the mean of the time series, i.e. \(X_t=0\), which cancels out the effect of the parameter \(c\). The estimates of the remain parameters included in the Eq. (2), and therefore for the BRPs as well, will be different from the base model ones because the fact of having included the environmental effect in the equations had an impact on the estimation of the curve.

The mathematical formulation of the BRPs estimates for each KBPM model depending on the centered environmental variable are:

  • In the case of the multiplicative model

\[B_{msy}(X)=K\left(\frac{1}{p+1}\right)^{1/p}\] \[F_{msy}(X)=\frac{r}{p}\left(1-\frac{1}{p+1}\right) cX\] \[MSY(X)=B_{msy}(X)*F_{msy}(X)\] \[K(X)=K\]

where r, p, K and c are the model parameter estimates of the additive and multiplicative environmental models, i.e. Eq. (5) and Eq. (6) respectively; and X the centered environmental variable.

  • In the case of the additive model

\[B_{msy}(X)=K\left(\frac{p c X+r}{r(p+1)}\right)^{1/p}\] \[F_{msy}(X)=\frac{r}{p}\left(1-\frac{1}{p+1}\right)-\frac{cX}{p+1}+cX\] \[MSY(X)=B_{msy}(X)*F_{msy}(X)\] \[K(X)=K+cX\]

where r, p, K and c are the model parameter estimates of the Eq. (5) and Eq. (6) and X the centered environmental variable.

For simplicity, the output slot $BRPs provides the BRPs estimates for a value of the centered environmental variable equal to the mean of the time series, i.e. , which cancels out the environmental effect in the equations defining both models, i.e. the effect of the parameter .

hake_n_environmental$BRPs
#>             K    B_MSY     F_MSY       MSY  MSYoverK
#> Base 529630.1 216936.5 0.5042724 109395.08 0.2065500
#> Add  378966.3 155224.6 0.5888996  91411.71 0.2412133
#> Mult 452443.2 185320.7 0.5389555  99879.63 0.2207562

More options

There is the possibility of obtaining 3D plots reporting the surplus production curve conditioned to a grid of environmental values using the argument control$plot3d=TRUE. In this case, a list named plots3D is added to the output list of knobi_env with the 3D plots objects.

control$plot3d = TRUE
knobi_env( hake_n_results, data, control)

There is also the possibility of fixing which lag is used in the relation among the surplus production and the environmental variable, for that the lag argument is used instead of nlag inside control as you can see below

Furthermore, it is also possible to fit the environmental models considering several variables at the same time using control$multicovar = TRUE. This means that cXt is replaced by \(\sum_{i=1}^{N} c_i X_{t,i}\) in Eq. (5) and Eq. (6), where index N represents the number of environmental variables.

Below you can see how we introduce the same data set as in previous examples but in the control we set multicovar=TRUE so that two of the variables, e.g. “AMO” and “NAO”, are considered in the environmental fit. Note that “AMO” is 2 years lagged whereas “NAO” is 3 years lagged respect the SP.

data2 <- data
data2$env <- data2$env[,c('AMO','NAO')]
control <- list( lag=c(2,3), multicovar=TRUE)
hake_n_multi <- knobi_env( hake_n_results, data2, control)

Finally, there is also the possibility of testing the correlation between the KBPM residuals and the environmental variable(s) through the fit of autoregressive models (AR models). In this case, firstly an AR model is fitted for the residuals in order to determine how the residuals can explain themselves:

\[ r_t=\sum_{i=1}^{\rho}\beta_{i}r_{t-i}+\epsilon_{t}\]

being rt the KBPM base residual for year t and \(\rho\) the AR model order, estimated as the maximum time lag at which the absolute value of the residuals partial autocorrelation is large than qnorm(0.975)Nr being Nr the length of the residuals series.

Then, AR models are fitted considering each one of the lagged environmental variable(s),

\[r_{t,lag}=\sum_{i=1}^{\rho}\beta_{i}r_{t-i}+X_{t-lag}+\epsilon_{t}\]

for lag=0,1,…,nlag, being Xt-lag the lagged environmental variable at year t-lag. Then, we have an autoregressive model for each of the lagged environmental variables. The AIC values of the above models are compared, and the lagged environmental variable whose model reports the lowest AIC is used in the KBPM fit, except if the argument ‘lag’ is used.

This test procedure is carried out using the argument ar_cor = TRUE in control list as you can see below.

control_ar <- list( nlag=3, ar_cor=TRUE)
hake_env_ar <- knobi_env( hake_n_results, data = data, control = control_ar)

A plot with the AIC values for each model is also represented. In the output object env_aic represents the AIC values for each AR model and selected_lag represent the lag corresponding to the model with the lowest AIC.

hake_env_ar$env_aic
#>         base    lag_0    lag_1    lag_2    lag_3
#> AMO 44.34811 45.17679 34.60677 40.01701 44.16061
#> NAO 44.34811 45.17679 41.32029 38.53076 40.20173
#> SST 44.34811 45.17679 41.84361 44.22787 46.34507
#> SBT 44.34811 45.17679 44.45827 38.59639 46.22021
hake_env_ar$selected_lag
#>     lag      aic
#> AMO   1 34.60677
#> NAO   2 38.53076
#> SST   1 41.84361
#> SBT   2 38.59639

2.3. knobi_retro

Once the KBPM fit is carried out using knobi_fit function, its robustness to the deletion of data is tested using the knobi_retro function.

knobi_retro input is the object returned by knobi_fit and the selected retrospective models. In this example, these models are specified by the nR argument, with a value of 5 (that is also the default value). This means that the first retrospective model considers the data deleting the last year and fits the surplus production curve, the next model deletes the two last years of the original data set and fits the SP curve, and then the process continues in this way until the last model is reached in which the last 5 years in the original data are deleted to then fit the curve.

hake_n_retros <- knobi_retro( knobi_results = hake_n_results,         
                              nR = 5,            
                              plot_out = FALSE)

The estimated surplus production curves from the retrospective analysis are plotted. The plot is displayed in the plot window and also saved if plot_out=T in the provided directory and file.

Quantitative results

The knobi_retro output is a list containing the retrospective analysis, that includes the parameter estimates and the reference points for each one of the models.

hake_n_retros
#> $BRPs
#>                    K    B_MSY     F_MSY      MSY  MSYoverK
#> 1978 - 2019 529630.1 216936.5 0.5042724 109395.1 0.2065500
#> 1978 - 2018 534350.5 218870.0 0.5047717 110479.4 0.2067545
#> 1978 - 2017 547288.4 224169.3 0.5048597 113174.1 0.2067905
#> 1978 - 2016 585744.5 239921.0 0.4944368 118625.8 0.2025213
#> 1978 - 2015 625579.8 256237.5 0.4807142 123177.0 0.1969005
#> 1978 - 2014 606786.6 248539.8 0.4869933 121037.2 0.1994725
#> 
#> $params
#>                     r        K    p
#> 1978 - 2019 0.6303405 529630.1 0.25
#> 1978 - 2018 0.6309647 534350.5 0.25
#> 1978 - 2017 0.6310746 547288.4 0.25
#> 1978 - 2016 0.6180460 585744.5 0.25
#> 1978 - 2015 0.6008928 625579.8 0.25
#> 1978 - 2014 0.6087417 606786.6 0.25

There is also another possibility for choosing the years to consider in each one of retrospective models. The yR argument specifies the final years of the catch time series for each of the retrospective models, providing greater flexibility in choosing the years from which to delete information. The number of retrospective fits will correspond to the length of the yR vector. Additionally, different starting years can be set using the yR0 argument.

Below, there are two examples of the use of these arguments. In the first example, the retrospective models are fitted from the first year available in the time series (which is the year 1978) up to the years defined by yR(2005, 2010 and 2015), while in the second example the models fit from the years contained in yR0 up to the years included in yR, i. e. , 1990 to 2005, from 1995 to 2010 and from 1995 to 2015.

knobi_retro( hake_n_results, 
             yR = c(2005,2010,2015))

#> $BRPs
#>                     K     B_MSY     F_MSY       MSY  MSYoverK
#> 1978 - 2019  529630.1 216936.49 0.5042724 109395.08 0.2065500
#> 1978 - 2005  154479.7  63274.89 0.9052966  57282.54 0.3708095
#> 1978 - 2010 1059625.9 434022.77 0.4182242 181518.85 0.1713046
#> 1978 - 2015  625579.8 256237.48 0.4807142 123177.00 0.1969005
#> 
#> $params
#>                     r         K    p
#> 1978 - 2019 0.6303405  529630.1 0.25
#> 1978 - 2005 1.1316207  154479.7 0.25
#> 1978 - 2010 0.5227803 1059625.9 0.25
#> 1978 - 2015 0.6008928  625579.8 0.25
knobi_retro( hake_n_results,
             yR = c(2005,2010,2015),
             yR0 = c(1990,1995,1995))

#> $BRPs
#>                    K     B_MSY     F_MSY       MSY  MSYoverK
#> 1978 - 2019 529630.1 216936.49 0.5042724 109395.08 0.2065500
#> 1990 - 2005 164738.7  67476.95 0.8629492  58229.19 0.3534640
#> 1995 - 2010 391203.8 210004.28 0.8258184 173425.40 0.4433122
#> 1995 - 2015 422793.9 195255.63 0.6960102 135899.92 0.3214330
#> 
#> $params
#>                     r        K         p
#> 1978 - 2019 0.6303405 529630.1 0.2500000
#> 1990 - 2005 1.0786866 164738.7 0.2500000
#> 1995 - 2010 2.0000000 391203.8 1.4218400
#> 1995 - 2015 1.1425157 422793.9 0.6415214

The environmental fit information can be considered too in the retrospective analysis through the env_results argument, where the result of the knobi_environmental function has to be provided. For environmental models, both the estimated BRPs and the plotted production curve correspond to a value of the scaled environmental variable equal to the mean of the time series, i.e. \(X_t=0\), which cancels out the environmental effect in the equations defining both models as it has been explained in the knobi_env function help’s details. In this case a panel of plots is provided, where each graph corresponds with a different model.

knobi_retro(hake_n_results, hake_n_environmental, nR = 3); hake_n_retros

#> $base
#> $base$BRPs
#>                    K    B_MSY     F_MSY      MSY  MSYoverK
#> 1978 - 2019 529630.1 216936.5 0.5042724 109395.1 0.2065500
#> 1978 - 2018 534350.5 218870.0 0.5047717 110479.4 0.2067545
#> 1978 - 2017 547288.4 224169.3 0.5048597 113174.1 0.2067905
#> 1978 - 2016 585744.5 239921.0 0.4944368 118625.8 0.2025213
#> 
#> $base$params
#>                     r        K    p
#> 1978 - 2019 0.6303405 529630.1 0.25
#> 1978 - 2018 0.6309647 534350.5 0.25
#> 1978 - 2017 0.6310746 547288.4 0.25
#> 1978 - 2016 0.6180460 585744.5 0.25
#> 
#> 
#> $add
#> $add$BRPs
#>                    K    B_MSY     F_MSY      MSY  MSYoverK
#> 1978 - 2019 378966.3 155224.6 0.5888996 91411.71 0.2412133
#> 1978 - 2018 381131.0 156111.3 0.5911378 92283.27 0.2421300
#> 1978 - 2017 388755.9 159234.4 0.5884636 93703.66 0.2410347
#> 1978 - 2016 407308.8 166833.7 0.5766696 96207.91 0.2362039
#> 
#> $add$params
#>                     r        K    p         c
#> 1978 - 2019 0.7361245 378966.3 0.25 0.1818522
#> 1978 - 2018 0.7389222 381131.0 0.25 0.1850930
#> 1978 - 2017 0.7355796 388755.9 0.25 0.1792510
#> 1978 - 2016 0.7208370 407308.8 0.25 0.1655657
#> 
#> 
#> $mult
#> $mult$BRPs
#>                    K    B_MSY     F_MSY       MSY  MSYoverK
#> 1978 - 2019 452443.2 185320.7 0.5389555  99879.63 0.2207562
#> 1978 - 2018 456041.3 186794.5 0.5404315 100949.63 0.2213607
#> 1978 - 2017 463270.4 189755.6 0.5422239 102890.01 0.2220949
#> 1978 - 2016 482857.7 197778.5 0.5363746 106083.38 0.2196990
#> 
#> $mult$params
#>                     r        K    p         c
#> 1978 - 2019 0.6736943 452443.2 0.25 0.1972698
#> 1978 - 2018 0.6755393 456041.3 0.25 0.1988942
#> 1978 - 2017 0.6777799 463270.4 0.25 0.1922664
#> 1978 - 2016 0.6704683 482857.7 0.25 0.1788808
#> $BRPs
#>                    K    B_MSY     F_MSY      MSY  MSYoverK
#> 1978 - 2019 529630.1 216936.5 0.5042724 109395.1 0.2065500
#> 1978 - 2018 534350.5 218870.0 0.5047717 110479.4 0.2067545
#> 1978 - 2017 547288.4 224169.3 0.5048597 113174.1 0.2067905
#> 1978 - 2016 585744.5 239921.0 0.4944368 118625.8 0.2025213
#> 1978 - 2015 625579.8 256237.5 0.4807142 123177.0 0.1969005
#> 1978 - 2014 606786.6 248539.8 0.4869933 121037.2 0.1994725
#> 
#> $params
#>                     r        K    p
#> 1978 - 2019 0.6303405 529630.1 0.25
#> 1978 - 2018 0.6309647 534350.5 0.25
#> 1978 - 2017 0.6310746 547288.4 0.25
#> 1978 - 2016 0.6180460 585744.5 0.25
#> 1978 - 2015 0.6008928 625579.8 0.25
#> 1978 - 2014 0.6087417 606786.6 0.25
knobi_retro( hake_n_results, hake_n_multi,
             yR = c(2005,2010,2015),
             yR0 = c(1990,1995,1995))

#> $base
#> $base$BRPs
#>                    K     B_MSY     F_MSY       MSY  MSYoverK
#> 1978 - 2019 529630.1 216936.49 0.5042724 109395.08 0.2065500
#> 1990 - 2005 164738.7  67476.95 0.8629492  58229.19 0.3534640
#> 1995 - 2010 391203.8 210004.28 0.8258184 173425.40 0.4433122
#> 1995 - 2015 422793.9 195255.63 0.6960102 135899.92 0.3214330
#> 
#> $base$params
#>                     r        K         p
#> 1978 - 2019 0.6303405 529630.1 0.2500000
#> 1990 - 2005 1.0786866 164738.7 0.2500000
#> 1995 - 2010 2.0000000 391203.8 1.4218400
#> 1995 - 2015 1.1425157 422793.9 0.6415214
#> 
#> 
#> $add
#> $add$BRPs
#>                    K    B_MSY     F_MSY       MSY  MSYoverK
#> 1978 - 2019 516487.3 211553.2 0.5067800 107210.94 0.2075771
#> 1990 - 2005 111641.9  55622.6 1.0092398  56136.54 0.5028268
#> 1995 - 2010 405142.6 215900.4 0.8428851 181979.25 0.4491734
#> 1995 - 2015 456980.3 214188.8 0.7175444 153689.98 0.3363165
#> 
#> $add$params
#>                    r        K         p          c1           c2
#> 1978 - 2019 0.633475 516487.3 0.2500000  0.01699104 -0.004395163
#> 1990 - 2005 2.000000 111641.9 0.9816896 -0.12416789  0.002753763
#> 1995 - 2010 2.000000 405142.6 1.3728028 -0.07141626  0.019702927
#> 1995 - 2015 1.220589 456980.3 0.7010645 -0.07483057  0.049011346
#> 
#> 
#> $mult
#> $mult$BRPs
#>                    K     B_MSY     F_MSY       MSY  MSYoverK
#> 1978 - 2019 498826.1 204319.17 0.5217776 106609.16 0.2137201
#> 1990 - 2005 114444.4  57364.07 0.9936023  56997.07 0.4980328
#> 1995 - 2010 396365.5 211096.01 0.8442972 178227.76 0.4496551
#> 1995 - 2015 422164.7 201123.68 0.7438241 149600.64 0.3543656
#> 
#> $mult$params
#>                    r        K         p          c1           c2
#> 1978 - 2019 0.652222 498826.1 0.2500000  0.05168960 -0.006546044
#> 1990 - 2005 2.000000 114444.4 1.0128778 -0.09494732  0.001507528
#> 1995 - 2010 2.000000 396365.5 1.3688342 -0.05364248  0.025982558
#> 1995 - 2015 1.316751 422164.7 0.7702457 -0.06812611  0.090078354

2.4. knobi_proj

knobi_proj function projects the time series of biomass (or spawning biomass) and then the surplus production for a set of future catch or fishing mortality values.

One of the knobi_proj arguments is a data frame containing the selected catch for the projected years. In this case three catch scenarios are considered: (i) constant catch value equal to the last historical catch, (ii) last historical catch with a 20% increase; and (iii) last historical catch with a 20% decrease.

catch <- rep(hake_n_results$input$Catch[length(hake_n_results$input$Catch)],8)
C <- data.frame(catch=catch, catch08=0.8*catch, catch12=1.2*catch)

The resulting plots are displayed in the plot window. In this example, four plots are presented in a panel reporting the SSB, surplus production, catch and fishing mortality projections for each catch catch scenario. Note that, in this case, plot_out = FALSE (by default), then plots are not saved like in the previous examples.

Then, on the basis of the above catch scenarios and the hake_n_results object, the projections are carried out.

projections <- knobi_proj( knobi_results=hake_n_results, c=C)

Quantitative results

Running the name of the output object the data frame with the projections for each scenario are printed. Details of the additional output information are provided in the help page.

projections
#> 
#>  Projections: 
#>  
#>       SSB        SP Year        C         F      Sc Model
#>  235508.2 108904.33 2020  87238.0 0.3704245   catch  base
#>  256339.6 107234.44 2021  87238.0 0.3403220   catch  base
#>  275106.2 104774.91 2022  87238.0 0.3171066   catch  base
#>  291242.4 101973.48 2023  87238.0 0.2995374   catch  base
#>  304589.5  99196.66 2024  87238.0 0.2864117   catch  base
#>  315289.8  96679.98 2025  87238.0 0.2766915   catch  base
#>  323659.7  94535.86 2026  87238.0 0.2695362   catch  base
#>  330083.6  92787.84 2027  87238.0 0.2642906   catch  base
#>  243962.4 108365.30 2020  69790.4 0.2860703 catch08  base
#>  280323.3 103937.12 2021  69790.4 0.2489640 catch08  base
#>  311322.8  97642.68 2022  69790.4 0.2241738 catch08  base
#>  335916.1  91124.87 2023  69790.4 0.2077614 catch08  base
#>  354385.0  85393.62 2024  69790.4 0.1969339 catch08  base
#>  367707.4  80831.93 2025  69790.4 0.1897988 catch08  base
#>  377046.3  77426.66 2026  69790.4 0.1850977 catch08  base
#>  383463.9  74989.35 2027  69790.4 0.1819999 catch08  base
#>  226957.6 109250.83 2020 104685.6 0.4612562 catch12  base
#>  231444.6 109094.25 2021 104685.6 0.4523139 catch12  base
#>  235751.8 108891.50 2022 104685.6 0.4440500 catch12  base
#>  239838.2 108652.33 2023 104685.6 0.4364844 catch12  base
#>  243672.2 108386.98 2024 104685.6 0.4296165 catch12  base
#>  247232.8 108105.49 2025 104685.6 0.4234292 catch12  base
#>  250508.5 107817.03 2026 104685.6 0.4178924 catch12  base
#>  253496.2 107529.51 2027 104685.6 0.4129672 catch12  base
#> 
#> 

With environmental information

There is the possibility of considering the environmental information in the projections. For this purpose, the knobi_env output and the new environmental values for the future years env argument must be provided.

In the current example, three scenarios are considered: (i) Constant SBT equal to last year’s SBT; (ii) constant SBT equal to last year’s SBT with a 5% increment; and (iii) constant SBT equal to last year’s SBT with a 5% decrease.

last_SBT <- Env$SBT[length(Env$SBT)]
env <- data.frame( SBTi=rep(last_SBT,5),
                   SBTii=rep(last_SBT*1.05,5),
                   SBTiii=rep(last_SBT*0.95,5))

C <- C[(1:5),]

Note that, as shown below, in this case, in addition to the plot with the results from the base KBPM model, additional plots are provided: (1) panels for each catch or fishing mortality scenario, depending on the model and environmental scenario; and (2) the same information, but now presented by each environmental scenario, depending on the model and catch or fishing mortality.

env_projections <- knobi_proj(hake_n_results, hake_n_environmental, c=C, env=env)

env_projections
#> 
#>  Projections: 
#>  
#>       SSB        SP Year        C         F      Sc Model  EnvSc
#>  235508.2 108904.33 2020  87238.0 0.3704245   catch  base   <NA>
#>  256339.6 107234.44 2021  87238.0 0.3403220   catch  base   <NA>
#>  275106.2 104774.91 2022  87238.0 0.3171066   catch  base   <NA>
#>  291242.4 101973.48 2023  87238.0 0.2995374   catch  base   <NA>
#>  304589.5  99196.66 2024  87238.0 0.2864117   catch  base   <NA>
#>  243962.4 108365.30 2020  69790.4 0.2860703 catch08  base   <NA>
#>  280323.3 103937.12 2021  69790.4 0.2489640 catch08  base   <NA>
#>  311322.8  97642.68 2022  69790.4 0.2241738 catch08  base   <NA>
#>  335916.1  91124.87 2023  69790.4 0.2077614 catch08  base   <NA>
#>  354385.0  85393.62 2024  69790.4 0.1969339 catch08  base   <NA>
#>  226957.6 109250.83 2020 104685.6 0.4612562 catch12  base   <NA>
#>  231444.6 109094.25 2021 104685.6 0.4523139 catch12  base   <NA>
#>  235751.8 108891.50 2022 104685.6 0.4440500 catch12  base   <NA>
#>  239838.2 108652.33 2023 104685.6 0.4364844 catch12  base   <NA>
#>  243672.2 108386.98 2024 104685.6 0.4296165 catch12  base   <NA>
#>  239759.8 117407.65 2020  87238.0 0.3638558   catch   add   SBTi
#>  267382.0 112312.73 2021  87238.0 0.3262673   catch   add   SBTi
#>  289602.4 106604.14 2022  87238.0 0.3012336   catch   add   SBTi
#>  306367.9 101402.74 2023  87238.0 0.2847492   catch   add   SBTi
#>  318433.2  97203.83 2024  87238.0 0.2739602   catch   add   SBTi
#>  238962.7 115813.40 2020  87238.0 0.3650695   catch  mult   SBTi
#>  264242.5 109222.30 2021  87238.0 0.3301437   catch  mult   SBTi
#>  283063.5 102895.67 2022  87238.0 0.3081923   catch  mult   SBTi
#>  296177.5  97808.25 2023  87238.0 0.2945464   catch  mult   SBTi
#>  304905.6  94123.91 2024  87238.0 0.2861148   catch  mult   SBTi
#>  261311.1 160510.22 2020  87238.0 0.3338473   catch   add  SBTii
#>  331528.7 154400.95 2021  87238.0 0.2631386   catch   add  SBTii
#>  391659.0 140335.62 2022  87238.0 0.2227397   catch   add  SBTii
#>  437064.3 124951.02 2023  87238.0 0.1995999   catch   add  SBTii
#>  468375.8 112148.01 2024  87238.0 0.1862564   catch   add  SBTii
#>  253021.5 143930.97 2020  87238.0 0.3447849   catch  mult  SBTii
#>  299482.4 123466.80 2021  87238.0 0.2912959   catch  mult  SBTii
#>  327454.1 106952.58 2022  87238.0 0.2664129   catch  mult  SBTii
#>  342219.6  97054.43 2023  87238.0 0.2549182   catch  mult  SBTii
#>  349464.2  91910.76 2024  87238.0 0.2496336   catch  mult  SBTii
#>  217504.6  72897.24 2020  87238.0 0.4010857   catch   add SBTiii
#>  204964.1  76497.76 2021  87238.0 0.4256257   catch   add SBTiii
#>  195390.5  78830.93 2022  87238.0 0.4464803   catch   add SBTiii
#>  187777.8  80419.74 2023  87238.0 0.4645810   catch   add SBTiii
#>  181521.3  81543.33 2024  87238.0 0.4805936   catch   add SBTiii
#>  227179.0  92246.00 2020  87238.0 0.3840056   catch  mult SBTiii
#>  231857.3  91586.54 2021  87238.0 0.3762573   catch  mult SBTiii
#>  235895.4  90965.76 2022  87238.0 0.3698164   catch  mult SBTiii
#>  239339.8  90399.01 2023  87238.0 0.3644943   catch  mult SBTiii
#>  242248.3  89894.02 2024  87238.0 0.3601181   catch  mult SBTiii
#>  247182.2 114804.73 2020  69790.4 0.2823440 catch08   add   SBTi
#>  287644.8 105701.40 2021  69790.4 0.2426270 catch08   add   SBTi
#>  318554.6  95698.87 2022  69790.4 0.2190846 catch08   add   SBTi
#>  340228.3  87229.37 2023  69790.4 0.2051282 catch08   add   SBTi
#>  354555.2  81005.16 2024  69790.4 0.1968393 catch08   add   SBTi
#>  246787.4 114015.19 2020  69790.4 0.2827956 catch08  mult   SBTi
#>  285079.2 102149.31 2021  69790.4 0.2448105 catch08  mult   SBTi
#>  311871.7  91016.31 2022  69790.4 0.2237792 catch08  mult   SBTi
#>  328976.1  82773.31 2023  69790.4 0.2121443 catch08  mult   SBTi
#>  339273.3  77402.02 2024  69790.4 0.2057055 catch08  mult   SBTi
#>  268518.0 157476.36 2020  69790.4 0.2599096 catch08   add  SBTii
#>  351289.0 147646.51 2021  69790.4 0.1986695 catch08   add  SBTii
#>  419514.6 128385.42 2022  69790.4 0.1663599 catch08   add  SBTii
#>  468482.1 109130.44 2023  69790.4 0.1489713 catch08   add  SBTii
#>  500421.3  94328.79 2024  69790.4 0.1394633 catch08   add  SBTii
#>  260423.8 141288.02 2020  69790.4 0.2679878 catch08  mult  SBTii
#>  317778.6 113002.41 2021  69790.4 0.2196196 catch08  mult  SBTii
#>  350184.1  91389.42 2022  69790.4 0.1992963 catch08  mult  SBTii
#>  365877.1  79577.32 2023  69790.4 0.1907482 catch08  mult  SBTii
#>  372888.8  74026.80 2024  69790.4 0.1871614 catch08  mult  SBTii
#>  225180.3  70800.93 2020  69790.4 0.3099312 catch08   add SBTiii
#>  226043.5  70506.39 2021  69790.4 0.3087476 catch08   add SBTiii
#>  226654.5  70296.29 2022  69790.4 0.3079154 catch08   add SBTiii
#>  227085.8  70147.14 2023  69790.4 0.3073306 catch08   add SBTiii
#>  227389.7  70041.61 2024  69790.4 0.3069197 catch08   add SBTiii
#>  235309.2  91058.81 2020  69790.4 0.2965902 catch08  mult SBTiii
#>  254772.4  87448.47 2021  69790.4 0.2739323 catch08  mult SBTiii
#>  270582.4  83752.28 2022  69790.4 0.2579266 catch08  mult SBTiii
#>  282880.6  80424.97 2023  69790.4 0.2467132 catch08  mult SBTiii
#>  292137.0  77668.45 2024  69790.4 0.2388962 catch08  mult SBTiii
#>  232255.9 119847.45 2020 104685.6 0.4507338 catch12   add   SBTi
#>  246419.8 117851.51 2021 104685.6 0.4248263 catch12   add   SBTi
#>  258491.3 115662.71 2022 104685.6 0.4049869 catch12   add   SBTi
#>  268407.5 113540.84 2023 104685.6 0.3900249 catch12   add   SBTi
#>  276315.0 111645.31 2024 104685.6 0.3788633 catch12   add   SBTi
#>  231035.4 117406.44 2020 104685.6 0.4531149 catch12  mult   SBTi
#>  242560.1 115014.19 2021 104685.6 0.4315862 catch12  mult   SBTi
#>  251760.7 112758.14 2022 104685.6 0.4158139 catch12  mult   SBTi
#>  258860.6 110812.91 2023 104685.6 0.4044091 catch12  mult   SBTi
#>  264199.2 109235.50 2024 104685.6 0.3962374 catch12  mult   SBTi
#>  254034.4 163404.36 2020 104685.6 0.4120923 catch12   add  SBTii
#>  311227.3 160352.58 2021 104685.6 0.3363639 catch12   add  SBTii
#>  362279.0 151122.11 2022 104685.6 0.2889640 catch12   add  SBTii
#>  403060.2 139811.60 2023 104685.6 0.2597269 catch12   add  SBTii
#>  433007.1 129453.25 2024 104685.6 0.2417642 catch12   add  SBTii
#>  245512.4 146360.46 2020 104685.6 0.4263963 catch12  mult  SBTii
#>  280473.8 132933.46 2021 104685.6 0.3732456 catch12  mult  SBTii
#>  303025.8 121541.80 2022 104685.6 0.3454676 catch12  mult  SBTii
#>  316114.8 114007.29 2023 104685.6 0.3311633 catch12  mult  SBTii
#>  323246.2 109626.73 2024 104685.6 0.3238572 catch12  mult  SBTii
#>  209731.7  74798.97 2020 104685.6 0.4991406 catch12   add SBTiii
#>  182899.9  80908.67 2021 104685.6 0.5723655 catch12   add SBTiii
#>  160495.5  83653.82 2022 104685.6 0.6522648 catch12   add SBTiii
#>  139675.3  84076.89 2023 104685.6 0.7494926 catch12   add SBTiii
#>  118078.7  82101.07 2024 104685.6 0.8865750 catch12   add SBTiii
#>  218955.7  93246.91 2020 104685.6 0.4781132 catch12  mult SBTiii
#>  208021.9  94256.71 2021 104685.6 0.5032432 catch12  mult SBTiii
#>  197891.5  94853.81 2022 104685.6 0.5290050 catch12  mult SBTiii
#>  188187.2  95108.69 2023 104685.6 0.5562844 catch12  mult SBTiii
#>  178577.6  95043.42 2024 104685.6 0.5862190 catch12  mult SBTiii
#> 
#> 

The output list also contains the projections for each of the scenarios catches and environmental scenarios. Details of the output are available in the help page.

Forecast via fishing mortality

Alternatively, projections can be based on fishing mortality. The scenarios presented below have been created from the estimated Fmsy in the knobi_fit analysis.

fmsy <- hake_n_results$BRPs['F_MSY']
ff <- rep(fmsy,5)
f <- data.frame( f=ff, f12=ff*1.2, f08=ff*0.8)

f_projections <- knobi_proj( hake_n_results, f=f, env_results=hake_n_environmental, env=env)

f_projections
#> 
#>  Projections: 
#>  
#>       SSB        SP Year         C         F  Sc Model  EnvSc
#>  223094.9 109340.37 2020 112500.59 0.5042724   f  base   <NA>
#>  220585.2 109375.82 2021 111235.01 0.5042724   f  base   <NA>
#>  219105.3 109388.26 2022 110488.77 0.5042724   f  base   <NA>
#>  218228.2 109392.66 2023 110046.45 0.5042724   f  base   <NA>
#>  217706.7 109394.22 2024 109783.46 0.5042724   f  base   <NA>
#>  214475.6 109386.26 2020 129784.97 0.6051268 f12  base   <NA>
#>  198627.6 108897.39 2021 120194.86 0.6051268 f12  base   <NA>
#>  189718.5 108283.05 2022 114803.74 0.6051268 f12  base   <NA>
#>  184530.2 107808.33 2023 111664.18 0.6051268 f12  base   <NA>
#>  181445.6 107484.36 2024 109797.63 0.6051268 f12  base   <NA>
#>  232338.4 109056.37 2020  93729.49 0.4034179 f08  base   <NA>
#>  244779.3 108303.06 2021  98748.33 0.4034179 f08  base   <NA>
#>  252451.3 107632.70 2022 101843.37 0.4034179 f08  base   <NA>
#>  257070.2 107155.26 2023 103706.73 0.4034179 f08  base   <NA>
#>  259811.3 106846.08 2024 104812.52 0.4034179 f08  base   <NA>
#>  227828.5 121194.67 2020 114887.63 0.5042724   f   add   SBTi
#>  232728.8 120852.11 2021 117358.68 0.5042724   f   add   SBTi
#>  235430.1 120630.26 2022 118720.92 0.5042724   f   add   SBTi
#>  236902.8 120499.53 2023 119463.54 0.5042724   f   add   SBTi
#>  237700.8 120425.83 2024 119865.93 0.5042724   f   add   SBTi
#>  226628.8 118190.26 2020 114282.65 0.5042724   f  mult   SBTi
#>  229545.7 117679.64 2021 115753.54 0.5042724   f  mult   SBTi
#>  230979.0 117416.93 2022 116476.34 0.5042724   f  mult   SBTi
#>  231677.9 117286.03 2023 116828.78 0.5042724   f  mult   SBTi
#>  232017.5 117221.78 2024 116999.99 0.5042724   f  mult   SBTi
#>  245894.2 166436.07 2020 123997.65 0.5042724   f   add  SBTii
#>  280927.4 169291.94 2021 141663.93 0.5042724   f   add  SBTii
#>  303067.3 169480.28 2022 152828.47 0.5042724   f   add  SBTii
#>  316188.8 169036.44 2023 159445.28 0.5042724   f   add  SBTii
#>  323676.1 168604.32 2024 163220.91 0.5042724   f   add  SBTii
#>  238671.5 148348.37 2020 120355.43 0.5042724   f  mult  SBTii
#>  258492.9 142000.86 2021 130350.85 0.5042724   f  mult  SBTii
#>  266563.9 138912.72 2022 134420.81 0.5042724   f  mult  SBTii
#>  269649.9 137657.19 2023 135977.02 0.5042724   f  mult  SBTii
#>  270800.7 137178.57 2024 136557.30 0.5042724   f  mult  SBTii
#>  209338.0  74889.27 2020 105563.35 0.5042724   f   add SBTiii
#>  187040.3  80397.91 2021  94319.23 0.5042724   f   add SBTiii
#>  176664.5  82256.81 2022  89087.02 0.5042724   f   add SBTiii
#>  171508.6  83005.49 2023  86487.05 0.5042724   f   add SBTiii
#>  168863.0  83343.37 2024  85152.96 0.5042724   f   add SBTiii
#>  216761.3  93479.32 2020 109306.73 0.5042724   f  mult SBTiii
#>  204528.6  94500.03 2021 103138.10 0.5042724   f  mult SBTiii
#>  197773.2  94858.81 2022  99731.54 0.5042724   f  mult SBTiii
#>  193936.3  94995.83 2023  97796.74 0.5042724   f  mult SBTiii
#>  191722.1  95052.53 2024  96680.15 0.5042724   f  mult SBTiii
#>  219870.4 123440.31 2020 133049.49 0.6051268 f12   add   SBTi
#>  212535.1 123549.34 2021 128610.71 0.6051268 f12   add   SBTi
#>  208643.0 123532.48 2022 126255.45 0.6051268 f12   add   SBTi
#>  206540.6 123501.49 2023 124983.25 0.6051268 f12   add   SBTi
#>  205394.0 123478.06 2024 124289.43 0.6051268 f12   add   SBTi
#>  218343.6 119462.71 2020 132125.56 0.6051268 f12  mult   SBTi
#>  209047.0 120569.73 2021 126499.97 0.6051268 f12  mult   SBTi
#>  204648.8 120972.21 2022 123838.47 0.6051268 f12  mult   SBTi
#>  202512.4 121139.07 2023 122545.66 0.6051268 f12  mult   SBTi
#>  201461.3 121214.22 2024 121909.66 0.6051268 f12  mult   SBTi
#>  237486.9 169333.54 2020 143709.71 0.6051268 f12   add  SBTii
#>  258280.1 172254.82 2021 156292.24 0.6051268 f12   add  SBTii
#>  270999.2 173464.56 2022 163988.91 0.6051268 f12   add  SBTii
#>  278471.3 173978.83 2023 168510.43 0.6051268 f12   add  SBTii
#>  282758.1 174209.71 2024 171104.50 0.6051268 f12   add  SBTii
#>  230254.6 150492.31 2020 139333.21 0.6051268 f12  mult  SBTii
#>  238062.5 148514.76 2021 144058.00 0.6051268 f12  mult  SBTii
#>  241153.0 147652.41 2022 145928.15 0.6051268 f12  mult  SBTii
#>  242344.5 147308.03 2023 146649.19 0.6051268 f12  mult  SBTii
#>  242799.2 147174.88 2024 146924.34 0.6051268 f12  mult  SBTii
#>  201849.6  76493.87 2020 122144.63 0.6051268 f12   add SBTiii
#>  169262.4  82901.61 2021 102425.24 0.6051268 f12   add SBTiii
#>  154786.2  84236.48 2022  93665.29 0.6051268 f12   add SBTiii
#>  147657.8  84523.61 2023  89351.68 0.6051268 f12   add SBTiii
#>  143969.9  84572.27 2024  87120.03 0.6051268 f12   add SBTiii
#>  208649.7  94208.86 2020 126259.52 0.6051268 f12  mult SBTiii
#>  184394.1  95121.37 2021 111581.83 0.6051268 f12  mult SBTiii
#>  171630.8  94792.24 2022 103858.40 0.6051268 f12  mult SBTiii
#>  164500.9  94350.32 2023  99543.92 0.6051268 f12  mult SBTiii
#>  160382.2  94007.72 2024  97051.57 0.6051268 f12  mult SBTiii
#>  236292.4 118559.28 2020  95324.57 0.4034179 f08   add   SBTi
#>  254662.6 116241.16 2021 102735.44 0.4034179 f08   add   SBTi
#>  265159.7 114458.67 2022 106970.17 0.4034179 f08   add   SBTi
#>  270926.8 113342.37 2023 109296.71 0.4034179 f08   add   SBTi
#>  274027.2 112702.79 2024 110547.50 0.4034179 f08   add   SBTi
#>  235455.1 116547.01 2020  94986.80 0.4034179 f08  mult   SBTi
#>  251814.1 112744.16 2021 101586.33 0.4034179 f08  mult   SBTi
#>  260141.8 110443.27 2022 104945.84 0.4034179 f08  mult   SBTi
#>  264212.3 109231.53 2023 106587.96 0.4034179 f08  mult   SBTi
#>  266162.3 108631.05 2024 107374.62 0.4034179 f08  mult   SBTi
#>  254824.0 163098.63 2020 102800.57 0.4034179 f08   add  SBTii
#>  305452.4 164183.66 2021 123224.96 0.4034179 f08   add  SBTii
#>  338447.9 161568.28 2022 136535.94 0.4034179 f08   add  SBTii
#>  358150.0 158856.09 2023 144484.14 0.4034179 f08   add  SBTii
#>  369318.3 156954.11 2024 148989.60 0.4034179 f08   add  SBTii
#>  247590.6 145713.76 2020  99882.49 0.4034179 f08  mult  SBTii
#>  280421.5 132957.47 2021 113127.04 0.4034179 f08  mult  SBTii
#>  294142.4 126273.72 2022 118662.31 0.4034179 f08  mult  SBTii
#>  299340.1 123543.07 2023 120759.14 0.4034179 f08  mult  SBTii
#>  301232.1 122522.45 2024 121522.40 0.4034179 f08  mult  SBTii
#>  217314.1  72946.54 2020  87668.39 0.4034179 f08   add SBTiii
#>  206418.1  76202.75 2021  83272.77 0.4034179 f08   add SBTiii
#>  201123.7  77618.15 2022  81136.92 0.4034179 f08   add SBTiii
#>  198473.0  78284.87 2023  80067.57 0.4034179 f08   add SBTiii
#>  197126.0  78612.83 2024  79524.16 0.4034179 f08   add SBTiii
#>  225439.2  92474.70 2020  90946.22 0.4034179 f08  mult SBTiii
#>  226645.6  92317.08 2021  91432.88 0.4034179 f08  mult SBTiii
#>  227342.6  92224.02 2022  91714.09 0.4034179 f08  mult SBTiii
#>  227744.4  92169.73 2023  91876.16 0.4034179 f08  mult SBTiii
#>  227975.6  92138.28 2024  91969.44 0.4034179 f08  mult SBTiii
#> 
#> 

Case of considering multicovariate environmental models

In case of multicovar=TRUE in knobi_env, the env argument must be a list in which each item is a data frame containing the values of the variables for a specific environmental scenario. In the following scenario we have two scenarios, “climate_1” and “climate_2”, and each of them we provide values of the two covariables, “AMO” and “NAO”, which are the ones included in the environmental fit.

env <- list( climate_1 = data.frame( AMO=c(0.2,0.2,0.3,0.3,0.4),
                                     NAO=c(0.2,0.2,0.3,0.3,0.4)),
             climate_2 = data.frame( AMO=c(0.2,0.3,0.4,0.5,0.6),
                                     NAO=c(0.2,0.3,0.4,0.5,0.6)))

multiproj <- knobi_proj( hake_n_results, hake_n_multi, c=C, env=env)

multiproj
#> 
#>  Projections: 
#>  
#>       SSB        SP Year        C         F      Sc Model     EnvSc
#>  235508.2 108904.33 2020  87238.0 0.3704245   catch  base      <NA>
#>  256339.6 107234.44 2021  87238.0 0.3403220   catch  base      <NA>
#>  275106.2 104774.91 2022  87238.0 0.3171066   catch  base      <NA>
#>  291242.4 101973.48 2023  87238.0 0.2995374   catch  base      <NA>
#>  304589.5  99196.66 2024  87238.0 0.2864117   catch  base      <NA>
#>  243962.4 108365.30 2020  69790.4 0.2860703 catch08  base      <NA>
#>  280323.3 103937.12 2021  69790.4 0.2489640 catch08  base      <NA>
#>  311322.8  97642.68 2022  69790.4 0.2241738 catch08  base      <NA>
#>  335916.1  91124.87 2023  69790.4 0.2077614 catch08  base      <NA>
#>  354385.0  85393.62 2024  69790.4 0.1969339 catch08  base      <NA>
#>  226957.6 109250.83 2020 104685.6 0.4612562 catch12  base      <NA>
#>  231444.6 109094.25 2021 104685.6 0.4523139 catch12  base      <NA>
#>  235751.8 108891.50 2022 104685.6 0.4440500 catch12  base      <NA>
#>  239838.2 108652.33 2023 104685.6 0.4364844 catch12  base      <NA>
#>  243672.2 108386.98 2024 104685.6 0.4296165 catch12  base      <NA>
#>  236170.3 110228.56 2020  87238.0 0.3693860   catch   add climate_1
#>  258251.3 108409.47 2021  87238.0 0.3378028   catch   add climate_1
#>  279117.1 107798.15 2022  87238.0 0.3125498   catch   add climate_1
#>  298011.7 104466.98 2023  87238.0 0.2927335   catch   add climate_1
#>  314709.0 103403.76 2024  87238.0 0.2772021   catch   add climate_1
#>  236426.6 110741.29 2020  87238.0 0.3689855   catch  mult climate_1
#>  258446.8 107775.09 2021  87238.0 0.3375472   catch  mult climate_1
#>  278431.4 106670.06 2022  87238.0 0.3133195   catch  mult climate_1
#>  295700.5 102344.08 2023  87238.0 0.2950215   catch  mult climate_1
#>  310025.8 100782.65 2024  87238.0 0.2813894   catch  mult climate_1
#>  236170.3 110228.56 2020  87238.0 0.3693860   catch   add climate_2
#>  259234.8 110376.44 2021  87238.0 0.3365212   catch   add climate_2
#>  281989.1 109608.22 2022  87238.0 0.3093666   catch   add climate_2
#>  303659.8 108209.09 2023  87238.0 0.2872886   catch   add climate_2
#>  323771.4 106490.08 2024  87238.0 0.2694432   catch   add climate_2
#>  236426.6 110741.29 2020  87238.0 0.3689855   catch  mult climate_2
#>  259771.5 110424.41 2021  87238.0 0.3358259   catch  mult climate_2
#>  282071.3 108651.15 2022  87238.0 0.3092764   catch  mult climate_2
#>  302143.5 105969.25 2023  87238.0 0.2887304   catch  mult climate_2
#>  319378.9 102977.60 2024  87238.0 0.2731489   catch  mult climate_2
#>  244549.9 109540.18 2020  69790.4 0.2853831 catch08   add climate_1
#>  281987.1 104915.04 2021  69790.4 0.2474950 catch08   add climate_1
#>  314937.3 100566.09 2022  69790.4 0.2216010 catch08   add climate_1
#>  342108.3  93356.73 2023  69790.4 0.2040009 catch08   add climate_1
#>  363736.9  89481.28 2024  69790.4 0.1918706 catch08   add climate_1
#>  244677.8 109795.96 2020  69790.4 0.2852339 catch08  mult climate_1
#>  281398.9 103227.02 2021  69790.4 0.2480124 catch08  mult climate_1
#>  311994.6  97545.31 2022  69790.4 0.2236910 catch08  mult climate_1
#>  335671.1  89388.43 2023  69790.4 0.2079130 catch08  mult climate_1
#>  352968.2  84786.48 2024  69790.4 0.1977243 catch08  mult climate_1
#>  244549.9 109540.18 2020  69790.4 0.2853831 catch08   add climate_2
#>  283008.8 106958.38 2021  69790.4 0.2466015 catch08   add climate_2
#>  317887.2 102379.34 2022  69790.4 0.2195445 catch08   add climate_2
#>  347889.7  97206.45 2023  69790.4 0.2006107 catch08   add climate_2
#>  372907.5  92409.81 2024  69790.4 0.1871521 catch08   add climate_2
#>  244677.8 109795.96 2020  69790.4 0.2852339 catch08  mult climate_2
#>  282631.2 105691.77 2021  69790.4 0.2469309 catch08  mult climate_2
#>  315231.3  99089.16 2022  69790.4 0.2213942 catch08  mult climate_2
#>  341027.3  92083.53 2023  69790.4 0.2046476 catch08  mult climate_2
#>  360293.6  86029.93 2024  69790.4 0.1937042 catch08  mult climate_2
#>  227696.1 110727.78 2020 104685.6 0.4597602 catch12   add climate_1
#>  233626.5 110504.34 2021 104685.6 0.4480895 catch12   add climate_1
#>  240255.2 112124.19 2022 104685.6 0.4357267 catch12   add climate_1
#>  247459.8 111656.15 2023 104685.6 0.4230409 catch12   add climate_1
#>  255153.3 113102.10 2024 104685.6 0.4102851 catch12   add climate_1
#>  228076.6 111488.81 2020 104685.6 0.4589932 catch12  mult climate_1
#>  234597.0 110923.28 2021 104685.6 0.4462358 catch12  mult climate_1
#>  241911.5 113076.75 2022 104685.6 0.4327435 catch12  mult climate_1
#>  249776.9 112025.28 2023 104685.6 0.4191165 catch12  mult climate_1
#>  257951.4 113695.03 2024 104685.6 0.4058345 catch12  mult climate_1
#>  227696.1 110727.78 2020 104685.6 0.4597602 catch12   add climate_2
#>  234571.9 112395.13 2021 104685.6 0.4462835 catch12   add climate_2
#>  243059.0 113950.19 2022 104685.6 0.4307003 catch12   add climate_2
#>  253018.5 115339.91 2023 104685.6 0.4137469 catch12   add climate_2
#>  264259.9 116514.13 2024 104685.6 0.3961464 catch12   add climate_2
#>  228076.6 111488.81 2020 104685.6 0.4589932 catch12  mult climate_2
#>  236006.7 113742.57 2021 104685.6 0.4435705 catch12  mult climate_2
#>  245973.8 115562.88 2022 104685.6 0.4255965 catch12  mult climate_2
#>  257477.5 116815.70 2023 104685.6 0.4065815 catch12  mult climate_2
#>  269915.8 117432.16 2024 104685.6 0.3878454 catch12  mult climate_2
#> 
#> 

References

Schaefer, M.B. (1954). Some Aspects of the Dynamics of Populations Important to the Management of the Commercial Marine Fisheries. Bulletin of the Inter-American Tropical Tuna Commission. 1:26-56.

Pella, J.J., Tomlinson, P.K. (1969). A generalized stock-production model. Bulletin of the Inter-American Tropical Tuna Commission. 13:421–58.

MacCall, A. (2002). Use of Known-Biomass Production Models to Determine Productivity of West Coast Groundfish Stocks. North American Journal of Fisheries Management, 22, 272-279.