Skip to contents

Evaluates the model report for an MLE or every selected retained posterior draw and applies summarise_biological_state().

Usage

diagnose_sbt_states(
  object,
  data,
  posterior = NULL,
  mle_par = NULL,
  iters = NULL,
  chains = NULL,
  cores = 1L,
  contract = biological_state_contract()
)

Arguments

object

A fitted RTMB objective.

data

Its SBT model data list.

posterior

NULL for an MLE or a SparseNUTS-compatible posterior.

mle_par

Fitted active parameter vector for an MLE evaluation.

iters, chains

Optional retained posterior iterations and chains.

cores

Number of fork workers where supported.

contract

A list returned by biological_state_contract().

Value

An sbt_state_diagnostics object with deterministic per-draw and aggregate summaries.