Reads data Stock Synthesis file structure into a nested Data object analogous with multiMSE
Source:R/SS2MOM.R
SS2DataMOM.Rd
A function that uses the file location of a fitted SS3 model including input files to population the various slots of an Data object.
Arguments
- SSdir
A folder with Stock Synthesis input and output files in it. Alternatively,
- age_M
A vector of ages to average across to calculate a single value of natural mortality. Currently, the Data object supports a single value of M for all ages. By default,
NULL
averages over all ages.- comp_partition
Integer vector for selecting length/age observations that are retained (2), discarded (1), or both (0). By default, only retained comps are used. If multiple codes are used, then comp matrix is the sum over all codes.
- silent
Logical. Suppress messages?
- ...
Arguments to pass to SS_output
Value
A nested list of Data objects, with the first index by stock/sex and the second index by fleet.
Note
Currently tested on r4ss version 1.38.1-41 and SS 3.30.14.
Catches in Data@Cat
are the predicted sex-specific catch calculated from the SS output.