Calculates one-step-ahead residuals for the length-composition likelihoods
using RTMB::oneStepPredict().
Usage
plot_lf_residuals(
fit = NULL,
obj = NULL,
fishery = c("LL1", "LL2", "LL3", "LL4", "CPUE"),
seed = 123L,
data = NULL,
...
)Arguments
- fit
An
sbt_fitobject.- obj
Legacy RTMB objective used only with a legacy data-list input.
- fishery
Fishery or fisheries to plot. Can be numeric indices or names. Use
"CPUE"or7for the CPUE length compositions.- 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().
