Learn R Programming

MSEtool (version 1.3.0)

SRA_scope: Stock-reduction analysis (SRA) for conditioning operating models

Description

Intended for conditioning operating models for data-limited stocks. From a historical time series of total catch or effort, and potentially age/length compositions and multiple indices of abundance, the SRA returns a range of values for depletion, selectivity, unfished recruitment (R0), historical fishing effort, and recruitment deviations for the operating model. This is done by sampling life history parameters provided by the user and fitting to the data in a statistical catch-at-age model (with the predicted catch equal to the observed catch). This function is intended to generate a range of potential depletion scenarios that could be supported from sparse data. Either a full catch (conditioned on catch) or effort (conditioned on effort) time series is needed but missing data (as NAs) are allowed for all other data types.

Usage

SRA_scope(OM, Chist = NULL, Ehist = NULL, condition = c("catch",
  "effort"), Index = NULL, I_sd = NULL, CAA = NULL, CAL = NULL,
  ML = NULL, length_bin = NULL, C_eq = 0, E_eq = 0, ML_sd = NULL,
  selectivity = "logistic", I_type = NULL, LWT = list(),
  ESS = c(30, 30), fix_dome = FALSE, max_F = 3, cores = 1L,
  integrate = FALSE, mean_fit = FALSE, ...)

plot_SRA_scope(...)

Sub_cpars(OM, sims = 1:OM@nsim)

Arguments

OM

An object of class '>OM that specifies natural mortality (M), growth (Linf, K, t0, a, b), stock-recruitment relationship, steepness, maturity parameters (L50 and L50_95), standard deviation of recruitment variability (Perr), as well as index uncertainty (Iobs).

Chist

A vector of historical catch, should be of length OM@nyears. If there are multiple fleets: a matrix of OM@nyears rows and nfleet columns. Ideally, the first year of the catch series represents unfished conditions (see also C_eq).

Ehist

A vector of historical effort, should be of length OM@nyears (see also E_eq).

condition

String to indicate whether the SRA model is conditioned on catch or effort.

Index

A vector of values of an index (of length OM@nyears). If there are multiple surveys: a matrix of historical indices of abundances, with rows indexing years and columns indexing surveys.

I_sd

A vector or matrix of standard deviations (lognormal distribution) for the indices corresponding to the entries in Index. If NULL, this function will use values from OM@Iobs.

CAA

Age composition matrix with nyears rows and OM@maxage columns. If multiple fleets: an array with dimension: nyears, OM@maxage, and nfleets.

CAL

Length composition matrix with nyears rows and columns indexing the length bin. If multiple fleets: an array with dimension: nyears, length bins, and nfleets.

ML

A vector of mean length observations (length OM@nyears), or if multiple fleets: matrix of dimension: nyears and nfleets. Generally, should not be used if CAL is also provided, unless mean length and length comps are independently sampled.

length_bin

A vector for the midpoints of the length bins for CAL. All length bin widths should be equal in size.

C_eq

A numeric vector of length nfleet for the equilibrium catch for each fleet in Chist prior to the first year of the operating model. Zero implies unfished conditions in year one. Otherwise, this is used to estimate depletion in the first year of the data.

E_eq

The equilibrium effort for each fleet in Ehist prior to the first year of the operating model. Zero implies unfished conditions in year one. Otherwise, this is used to estimate depletion in the first year of the data.

ML_sd

The standard deviation (normal distribution) of the observed mean lengths. If there are multiple fleets, a vector of length nfleet. If NULL, default value is 0.1 * mean(ML).

selectivity

A character vector of length nfleet to indicate "logistic" or "dome" selectivity for each fleet in Chist.

I_type

A character vector (length nsurvey) to indicate the type of biomass for which each index follows. Either "B" for total biomass, or "SSB" for spawning biomass. If NULL, "B" is used. Use numbers if the index corresponds to a fleet in Chist.

LWT

A named list of likelihood weights for the SRA model. See details.

ESS

A numeric vector of length two for the maximum effective samples size of the age and length compositions, respectively for the multinomial likelihood function. The annual sample size of an age or length composition sample is the minimum of ESS or the number of observations.

fix_dome

Logical, if selectivity = "dome", determines whether the descending limb of selectivity is fixed or not.

max_F

The maximum F for any fleet in the scoping model (higher F's in the model are penalized in the objective function).

cores

Integer for the number of CPU cores for the stock reduction analysis.

integrate

Logical, whether to treat recruitment deviations as penalized parameters (FALSE) or random effects (TRUE).

mean_fit

Logical, whether to run an additional with mean values of life history parameters from the OM.

...

Other arguments to add in the future.

sims

A logical vector of length OM@nsim or a numberic vector indicating which simulations to keep.

Value

An object of class '>SRA (see link for output dimensions).

Details

One of indices, age compositions, or length compositions should be provided in addition to the historical catch. Selectivity is fixed to values sampled from OM if no age or length compositions are provided.

LWT is a named list containing the likelihood weights (values > 0) with the possible options:

  • Chist: A vector of length nfleet.

  • Index: A vector of length nsurvey.

  • CAA, CAL, ML, C_eq: A vector of length nfleet for each.

By default, all likelihood weights are equal to one if not specified by the user. Likelihoods for CAA and CAL can also be adjusted by changing the multinomial sample size. See argument ESS.

plot_SRA_scope is now deprecated in favor of plot.SRA

Output from SRA_scope is placed in objects in OM@cpars. Sub_cpars is a convenient function to subset simulations for the operating model, for example, to remove simulations from unconverged model fits or outlier simulations.

See Also

plot.SRA '>SRA