Skip to contents

Calculates randomized one-step-ahead residuals for the configured POP observation likelihood and plots mean residuals by release cohort and adult capture year.

Usage

plot_pops_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. The residual data and plotted residual data are attached as "residual_data" and "plot_data" attributes.