An S4 class for the data inputs into RCM.
Slots
Chist
Either a vector of historical catch, should be of length
OM@nyears
, or if there are multiple fleets, a matrix ofOM@nyears
rows andnfleet
columns. Ideally, the first year of the catch series represents unfished conditions (see also slotC_eq
).C_sd
Same 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")
.Ehist
A vector of historical effort, should be of length
OM@nyears
, or if there are multiple fleets: a matrix ofOM@nyears
rows andnfleet
columns. See also slotE_eq
).C_wt
Optional weight at age for the catch
Chist
. Array with dimension[OM@nyears+1, OM@maxage+1, nfleet]
.CAA
Fishery age composition matrix with
nyears
rows andOM@maxage+1
columns, or if multiple fleets: an array with dimension:nyears, OM@maxage+1, nfleet
. EnterNA
for years without any data. Raw numbers will be converted to annual proportions (see slotCAA_ESS
for sample sizes).CAA_ESS
Annual 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@nyears
rows andnfleet
columns. 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,CAL
Fishery length composition matrix with
nyears
rows andn_bin
columns (indexing the length bin), or if multiple fleets: an array with dimension:nyears, n_bin, nfleets
. EnterNA
for years without any data. Raw numbers will be converted to annual proportions (see slotCAL_ESS
for sample sizes).CAL_ESS
Annual sample size (for the multinomial distribution) of the fishery length comps. Same dimension as
CAA_ESS
.length_bin
A vector (length
n_bin
) for the midpoints of the length bins forCAL
andIAL
, 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
).
MS
Mean 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_type
A character (either
"length"
(default) or"weight"
) to denote the type of mean size data.MS_cv
The coefficient of variation of the observed mean size. If there are multiple fleets, a vector of length
nfleet
. Default is 0.2.Index
Index of abundance. Enter
NA
for missing values. A vector lengthOM@nyears
, or if there are multiple surveys: a matrix ofOM@nyears
rows andnsurvey
columns.I_sd
A 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_wt
Optional weight at age for the index
Index
. Array with dimension[OM@nyears, OM@maxage+1, nsurvey]
.IAA
Index age composition data, an array of dimension
nyears, maxage+1, nsurvey
. Raw numbers will be converted to annual proportions (seeIAA_ESS
for sample sizes).IAA_ESS
Annual 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@nyears
rows andnsurvey
columns.IAL
Index length composition data, an array of dimension
nyears, n_bin, nsurvey
. Raw numbers will be converted to annual proportions (see slotIAL_ESS
to enter sample sizes).IAL_ESS
Annual sample size (for the multinomial distribution) of the index length comps. Same dimension as
IAA_ESS
.C_eq
Vector of length
nfleet
for the equilibrium catch for each fleet inChist
prior 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_sd
A 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_eq
The equilibrium effort for each fleet in
Ehist
prior 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_I
An integer vector length
nsurvey
to indicate which indices are in absolute magnitude. Use1
to setq = 1
, otherwise use 0 (default) to estimate q.I_units
An integer vector of length
nsurvey
to indicate whether indices are biomass based (1) or abundance-based (0). By default, all are biomass-based.I_delta
A vector of length
nsurvey
to 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_error
A square matrix of
maxage + 1
rows and columns to specify ageing error. Theaa
-th column assigns a proportion of animals of true ageaa
to observed agea
in thea
-th row. Thus, all rows should sum to 1. Default is an identity matrix (no ageing error).sel_block
For time-varying fleet selectivity (in time blocks), a integer matrix of
nyears
rows andnfleet
columns 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.Misc
A list of miscellaneous inputs. Used internally.