An S4 class for the data inputs into RCM.
Slots
ChistEither a vector of historical catch, should be of length
OM@nyears, or if there are multiple fleets, a matrix ofOM@nyearsrows andnfleetcolumns. Ideally, the first year of the catch series represents unfished conditions (see also slotC_eq).C_sdSame dimension as
Chist. Lognormal distribution standard deviations (by year and fleet) for the catches inChist. If not provided, the default is 0.01. Not used ifRCM(condition = "catch2").EhistA vector of historical effort, should be of length
OM@nyears, or if there are multiple fleets: a matrix ofOM@nyearsrows andnfleetcolumns. See also slotE_eq).C_wtOptional weight at age for the catch
Chist. Array with dimension[OM@nyears+1, OM@maxage+1, nfleet].CAAFishery age composition matrix with
nyearsrows andOM@maxage+1columns, or if multiple fleets: an array with dimension:nyears, OM@maxage+1, nfleet. EnterNAfor years without any data. Raw numbers will be converted to annual proportions (see slotCAA_ESSfor sample sizes).CAA_ESSAnnual sample size (for the multinomial distribution) of the fishery age comps. A vector of length
OM@nyears, or if there are multiple fleets: a matrix ofOM@nyearsrows andnfleetcolumns. Enter zero for years without observations. An annual cap to the ESS, e.g., 50, can be calculated with something like:pmin(apply(CAA, c(1, 3), sum, na.rm = TRUE), 50). By default,CALFishery length composition matrix with
nyearsrows andn_bincolumns (indexing the length bin), or if multiple fleets: an array with dimension:nyears, n_bin, nfleets. EnterNAfor years without any data. Raw numbers will be converted to annual proportions (see slotCAL_ESSfor sample sizes).CAL_ESSAnnual sample size (for the multinomial distribution) of the fishery length comps. Same dimension as
CAA_ESS.length_binA vector (length
n_bin) for the midpoints of the length bins forCALandIAL, as well as the population model, if all bin widths are equal in size. If length bins are unequal in width, then provide a vector of the boundaries of the length bins (vector of lengthn_bin + 1).
MSMean mean size (either mean length or mean weight) observations from the fishery. Same dimension as
Chist. Generally, mean lengths should not be used alongsideCAL, unless mean length and length comps are independently sampled.MS_typeA character (either
"length"(default) or"weight") to denote the type of mean size data.MS_cvThe coefficient of variation of the observed mean size. If there are multiple fleets, a vector of length
nfleet. Default is 0.2.IndexIndex of abundance. Enter
NAfor missing values. A vector lengthOM@nyears, or if there are multiple surveys: a matrix ofOM@nyearsrows andnsurveycolumns.I_sdA vector or matrix of standard deviations (lognormal distribution) for the indices corresponding to the entries in
Index. Same dimension asIndex. If not provided, this function will use values fromOM@Iobs.I_wtOptional weight at age for the index
Index. Array with dimension[OM@nyears, OM@maxage+1, nsurvey].IAAIndex age composition data, an array of dimension
nyears, maxage+1, nsurvey. Raw numbers will be converted to annual proportions (seeIAA_ESSfor sample sizes).IAA_ESSAnnual sample size (for the multinomial distribution) of the index age comps. A vector of length
OM@nyears. If there are multiple indices: a matrix ofOM@nyearsrows andnsurveycolumns.IALIndex length composition data, an array of dimension
nyears, n_bin, nsurvey. Raw numbers will be converted to annual proportions (see slotIAL_ESSto enter sample sizes).IAL_ESSAnnual sample size (for the multinomial distribution) of the index length comps. Same dimension as
IAA_ESS.C_eqVector of length
nfleetfor the equilibrium catch for each fleet inChistprior to the first year of the operating model. Zero (default) implies unfished conditions in year one. Otherwise, this is used to estimate depletion in the first year of the data. Alternatively, if one has a full CAA matrix, one could instead estimate "artificial" rec devs to generate the initial numbers-at-age (and hence initial depletion) in the first year of the model (see additional arguments in RCM).C_eq_sdA vector of standard deviations (lognormal distribution) for the equilibrium catches in
C_eq. Same dimension asC_eq. If not provided, the default is 0.01. Only used ifRCM(condition = "catch").
E_eqThe equilibrium effort for each fleet in
Ehistprior to the first year of the operating model. Zero (default) implies unfished conditions in year one. Otherwise, this is used to estimate depletion in the first year of the data.abs_IAn integer vector length
nsurveyto indicate which indices are in absolute magnitude. Use1to setq = 1, otherwise use 0 (default) to estimate q.I_unitsAn integer vector of length
nsurveyto indicate whether indices are biomass based (1) or abundance-based (0). By default, all are biomass-based.I_deltaA vector of length
nsurveyto indicate the timing of the indices within each time step (0-1, for example 0.5 is the midpoint of the year). By default, zero is used. Can also be a matrix bynyears, nsurvey. Use -1 if the survey operates continuously, the availability would beN * (1 - exp(-Z))/Z.age_errorA square matrix of
maxage + 1rows and columns to specify ageing error. Theaa-th column assigns a proportion of animals of true ageaato observed ageain thea-th row. Thus, all rows should sum to 1. Default is an identity matrix (no ageing error).sel_blockFor time-varying fleet selectivity (in time blocks), a integer matrix of
nyearsrows andnfleetcolumns to assign a selectivity function to a fleet for certain years. By default, constant selectivity for each individual fleet. See the selectivity article for more details.MiscA list of miscellaneous inputs. Used internally.
