Plots OSA residuals from outputs from get_osa. Much of this code is taken from the afscOM package, but with modificaitons to plot features.
plot_resids.Rd
Plots OSA residuals from outputs from get_osa. Much of this code is taken from the afscOM package, but with modificaitons to plot features.
See also
Other Model Diagnostics:
do_jitter()
,
do_likelihood_profile()
,
do_retrospective()
,
do_runs_test()
,
get_catch_fits_plot()
,
get_comp_prop()
,
get_idx_fits()
,
get_idx_fits_plot()
,
get_model_rep_from_mcmc()
,
get_nLL_plot()
,
get_osa()
,
get_retrospective_plot()
,
get_retrospective_relative_difference()
Examples
if (FALSE) { # \dontrun{
comp_props <- get_comp_prop(data = data, rep = sabie_rtmb_model$rep, age_labels = 2:31, len_labels = seq(41, 99, 2), year_labels = 1960:2024)
plot_resids(get_osa(obs_mat = comp_props$Obs_FishAge_mat,
exp_mat = comp_props$Pred_FishAge_mat,
N = rep(16.52215, length(1999:2023)),
years = which(1960:2024 %in% 1999:2023),
LN_Sigma = LN_Sigma,
fleet = 1,
bins = 2:31,
comp_type = 0,
comp_like = 0,
bin_label = "Age"))
osa_plot <- plot_resids(osa_results)
} # }