SScompsTA1.8: TA1.8 Francis function modified from r4ss::SSMethod.TA1.8 to...

View source: R/SScompsTA1.8.R

SScompsTA1.8R Documentation

TA1.8 Francis function modified from r4ss::SSMethod.TA1.8 to create mean length/age

Description

Uses method TA1.8 (described in Appendix A of Francis 2011) to do stage-2 weighting of composition data from a Stock Synthesis model. The main purpose is to create obs, exp and residuals of mean L/age Please see r4ss::SSMethod.TA1.8 for full set of intended options

Usage

SScompsTA1.8(
  ss3rep,
  type = c("len", "age", "size", "con")[1],
  fleet = NULL,
  plotit = FALSE,
  maxpanel = 1000
)

Arguments

ss3rep

Stock Synthesis output as read by r4SS function SS_output

type

either 'len' (for length composition data), 'size' (for generalized size composition data), 'age' (for age composition data), or 'con' (for conditional age at length data)

fleet

vector of one or more fleet numbers whose data are to be analysed simultaneously (the output N multiplier applies to all fleets combined)

plotit

if TRUE, make an illustrative plot like one or more panels of Fig. 4 in Francis (2011).

printit

if TRUE, print results to R console.

Value

data.frame of observed, predicted mean length/age and residuals

Author(s)

Chris Francis, Andre Punt, Ian Taylor (modified by Henning Winker)

References

Francis, R.I.C.C. (2011). Data weighting in statistical fisheries stock assessment models. Canadian Journal of Fisheries and Aquatic Sciences 68: 1124-1138.


jabbamodel/ss3diags documentation built on Oct. 8, 2024, 11:49 p.m.