compareFits.ZScores.PrNatZ: Compare Pearson's residuals or nll residuals from size comps...

View source: R/compareFits.ZScores.PrNatZ.R

compareFits.ZScores.PrNatZR Documentation

Compare Pearson's residuals or nll residuals from size comps by fleet among several model runs

Description

Function to compare Pearson's residuals or nll residuals from size comps by fleet among several model runs.

Usage

compareFits.ZScores.PrNatZ(
  objs = NULL,
  mdfr = NULL,
  fleets = "all",
  fleet.type = c("survey", "fishery"),
  catch.type = c("index", "retained", "total"),
  residuals.type = c("pearsons", "nlls"),
  tcsam2013.type = c("PRs_yxmz", "PRs_yxz"),
  BRT = 4,
  showPlot = FALSE,
  pdf = NULL,
  verbose = FALSE
)

Arguments

objs
  • object that can be converted into a list of tcsam2013.resLst and/or tcsam02.resLst objects

mdfr
  • dataframe from call to extractFits.ZScores.PrNatZ (as alternative to objs)

fleets
  • names of fleets to include (or "all" or NULL to include all)

fleet.type
  • fleet type ('fishery' or 'survey')

catch.type
  • catch type ('index','retained',or 'total')

residuals.type
  • residual type for tcsam02 models ('pearsons' or 'nlls')

tcsam2013.type
  • pearsons residuals type for tcsam2013 models ("PRs_yxmz","PRs_yxz")

BRT
  • bad residual threshold (threshold to flag bad residuals, if residuals.type is 'pearsons')

showPlot
  • flag (T/F) to show plot

pdf
  • name for output pdf file

verbose
  • flag (T/F) to print diagnostic information

Details

Uses extractFits.ZScores.PrNatZ() to extract data for plotting. Also uses wtsUtilities::printGGList().

Value

non-nested list of ggplot2 objects, with captions as names


wStockhausen/rCompTCMs documentation built on Sept. 12, 2023, 3:13 p.m.