A function that uses the file location of a fitted SS3 model including input files to population the various slots of an Data object.

SS2DataMOM(SSdir, age_M = NULL, comp_partition = 2, silent = FALSE, ...)



A folder with Stock Synthesis input and output files in it. Alternatively,


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.


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.


Logical. Suppress messages?


Arguments to pass to SS_output


A nested list of Data objects, with the first index by stock/sex and the second index by fleet.


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.

See also


Q. Huynh