Calculates one-step-ahead residuals for the age-composition likelihoods using
RTMB::oneStepPredict().
Usage
plot_af_residuals(
fit = NULL,
obj = NULL,
fishery = c("Indonesian", "Australian"),
seed = 123L,
data = NULL,
...
)Arguments
- fit
An
sbt_fitobject.- obj
Legacy RTMB objective used only with a legacy data-list input.
- fishery
Indonesian or Australian fisheries to plot, supplied as names or their valid numeric indices.
- seed
Random seed used by randomized discrete residuals. Use
NULLto leave the RNG state unchanged.- data
Legacy named alias for a model data list; supply
objas well.- ...
Additional arguments passed to
RTMB::oneStepPredict().
