Skip to contents

Check model reports for non-positive or non-finite numbers-at-age and spawning biomass. The unused terminal season-2 slice of number_ysa is ignored.

Usage

check_abundance(
  data = NULL,
  object = NULL,
  report = NULL,
  eps = 0L,
  quiet = FALSE
)

Arguments

data

A list containing the data that was passed to MakeADFun. Optional, but used to label years and ages.

object

A list specifying the AD object created using MakeADFun. Not required if report is supplied.

report

Optional precomputed model report list.

eps

Numeric threshold. Values less than or equal to eps are flagged. Default is 0.

quiet

Logical. If FALSE, issue a warning when invalid values are found. Default is FALSE.

Value

A list with an ok flag, a summary table, and detailed issue tables.

Details

This is a lightweight plotting diagnostic. It does not check raw harvest, exact catch conditioning, mortality, or the continuation penalty and is not a substitute for diagnose_sbt_states() or check_mle().