Creates a table of values that can be copied into the SS control file for SS 3.30 models to adjust the input sample sizes for length and age compositions based on either the Francis or McAllister-Ianelli tuning.
SS_tune_comps(replist, fleets = "all", option = "Francis",
digits = 6, write = TRUE)
List output from SS_output
Either the string 'all', or a vector of fleet numbers
Which type of tuning: 'none', 'Francis', or 'MI'
Number of digits to round numbers to
Write suggested tunings to a file 'suggested_tunings.ss'
Returns a table that can be copied into the control file.
If write=TRUE
then will write the values to a file
(currently hardwired to go in the directory where the model was run
and called "suggested_tunings.ss")
Note: starting with SS version 3.30.12, the "Length_Comp_Fit_Summary" table in Report.sso is already in the format required to paste into the control file to apply the McAllister-Ianelli tuning. However, this function provides the additional option of the Francis tuning and the ability to compare the two approaches. Also note, that the Dirichlet-Multinomial likelihood is an alternative approach that allow the tuning factor to be estimated rather than iteratively tuned.
Francis, R.I.C.C. (2011). Data weighting in statistical fisheries stock assessment models. Can. J. Fish. Aquat. Sci. 68: 1124-1138.