getMDFR.OFCs.DataComponents: Get data-related components from the objective function for a...

View source: R/getMDFR.OFCs.DataComponents.R

getMDFR.OFCs.DataComponentsR Documentation

Get data-related components from the objective function for a (list of) TCSAM02 model(s) as a dataframe

Description

Function to get data-related components from the objective function for a (list of) TCSAM02 model(s) as a dataframe.

Usage

getMDFR.OFCs.DataComponents(
  obj,
  categories = c("all", "surveys", "fisheries", "growthdata", "maturityogivedata",
    "effortdata"),
  verbose = FALSE
)

Arguments

obj
  • a single tcsam02 rep object, a single tcsam02 resLst object, or a named list of such

categories
  • data-related objective function components to get ("all","surveys","fisheries","growthdata","maturitydata","effortdata")

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

Details

Returned dataframe has columns:

  • case - model case (blank, to be filled in by caller if obj is not a list of tcsam02.resLst objects)

  • category - fleet category

  • fleet - fleet name

  • catch.type - catch type

  • data.type - data type

  • fit.type - fit type

  • nll.type - likelihood type

  • y - year

  • x - sex

  • m - maturity state

  • s - shell condition

  • rmse - root mean squared error

  • wgt - likelihood weight

  • nll - (unweighted) negative log-likelihood

  • objfun - objective function value

Value

dataframe


wStockhausen/rTCSAM02 documentation built on Sept. 27, 2024, 6:52 a.m.