Calculates randomized one-step-ahead residuals for the configured genetic
tagging observation likelihood and plots them by release year.
Usage
plot_gt_residuals(fit = NULL, obj = NULL, data = NULL)
Arguments
- fit
An sbt_fit object.
- obj
Legacy RTMB objective used only with a legacy data-list input.
- data
Legacy named alias for a model data list; supply obj as
well.
Value
A ggplot2 object. Residual data, finite plot data, the
diagnostic summary, and the residual source are attached as attributes.