Skip to contents

Calculates randomized one-step-ahead residuals for the configured HSP observation likelihood and plots them by cohort pair.

Usage

plot_hsps_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.