S4 class that organizes the various data inputs for the MARS model. MARSdata simply inherits the slots from 6 component classes:
Dmodel, Dstock, Dfishery, Dsurvey DCKMR, and Dtag, where the D- prefix denotes an object for model data.
Details
For convenience, most arrays and matrices have the associated dimensions in the variable name. For example, Cobs_ymfr represents
observed catch with the dimension following the underscore, following this template:
y | Year |
m | Season |
a | Age |
r | Region |
f | Fishery |
i | Index |
s | Stock |
Slots inherited from Dstock
m_spawnInteger, season of spawning. Defaults to 1.
m_recInteger, season of recruitment. Defaults to 1.
len_ymasLength-at-age. Only needed if
Dmodel@nl > 0.calc_growth()may be a helpful function.sdlen_ymasStandard deviation in length-at-age
LAK_ymalsLength-at-age probability array. If empty, values will be calculated by
check_data()withcalc_LAK().matd_yasProportion mature by age class. Ignored if maturity ogive is estimated, e.g., when fitting to close-kin genetic data.
swt_ymasStock weight-at-age. See
calc_growth()example.fec_yasFecundity, i.e., spawning output, of mature animals. Default uses stock weight at age.
Md_yasNatural mortality. Ignored if M is estimated.
SRR_sCharacter vector of stock-recruit relationship by stock. See
SRRargument incalc_recruitment()for options.delta_sFraction of season that elapses when spawning occurs, e.g., midseason spawning occurs when
delta_s = 0.5. Default is zero.presence_rsLogical matrix indicating presence/absence of stock
sin regionr. Used to constrain movement matrix. Default is TRUE for all stocks and regions.natal_rsThe fraction of the mature stock
sin regionrthat spawns at time of spawning. See example. Default is 1 for all stocks and regions.
Examples
# Set natal_rs matrix so that the spawning output of stock 1 is
# calculated from mature animals present in regions 1, 2.
# Similarly for stock 2, spawning output from areas 2 and 3.
nr <- 4
ns <- 2
natal_rs <- matrix(0, nr, ns)
natal_rs[1:2, 1] <- natal_rs[2:3, 2] <- 1