Skip to contents

Extract and summarize derived quantities from model output.

Usage

get_derived_quants(
  object,
  posterior = NULL,
  iters = NULL,
  option = 2,
  data = NULL
)

Arguments

object

A TMB model object created using MakeADFun.

posterior

A posterior sample object from MCMC (e.g., from SparseNUTS).

iters

An integer specifying the number of iterations to extract (NULL for all).

option

An integer specifying the parallel processing option.

data

A list containing model data used for labels and derived biomass calculations.

Value

a list containing derived quantities including recruitment, selectivity, biomass, and reference points.