Skip to contents

Function for calculating RMSE used for SSplotJABBAres()

Usage

SSrmse(
  ss3rep,
  quants = c("cpue", "len", "age", "con"),
  seas = NULL,
  indexselect = NULL
)

Arguments

ss3rep

output from SS_output()

quants

the dataset to calculate RMSE for. "cpue" for index of abundance, "len" for length comp, "age" for age composition, and "con" for conditional age-at-length.

seas

string indicating how to treat data from multiple seasons 'comb' - combine seasonal data for each year and plot against Yr 'sep' - treat season separately, plotting against Yr.S. If is.null(seas), it is assumed that there is only one season and option 'comb' is used.

indexselect

Vector of fleet numbers for each model for which to compare

Value

returns a list that includes the RMSE table output (by fleet and combined) and the dataframe of residuals which can be used for creating the SSplotJABBAres() plot