getObjFunValues.Fleets: Get fleet data components in the objective function as a...

Description Usage Arguments Details Value

View source: R/getObjFunValues.Fleets.R

Description

Function to get fleet data components in the objective function as a melted dataframe.

Usage

1
2
getObjFunValues.Fleets(repObjs, mdl = NULL, type = "fishery",
  verbose = FALSE)

Arguments

repObjs

- tcsam2015 model report object or list of such

mdl

- name to associate with model results object

type

- "fishery" or "survey"

verbose

- flag (T/F) to print diagnostic info

Details

If repObjs is a list of tcsam2015 model report objects, then the function is called recursively for each object, with the associated list component name used as mdl. If repObjs is a tcsam2015 model report object and mdl is NULL (the default), then repObjs$mc$configName is used as the model name.

The returned dataframe has columns named "model", "source.type", "source.name", "catch.type", "data.type", "fit.type", "nll.type", "year", "sex", "maturity", "shell_condition", "variable", "value"

The "variable" column indicates whether the "value" is a weight ('wgt'), negative log-likelihood ('nll'), or objective function value ('objfun').

Value

a melted dataframe


wStockhausen/rTCSAM2015 documentation built on May 3, 2019, 7:14 p.m.