Skip to contents

Generates a comprehensive summary of posterior predictive checks for any vitalBayes model fit.

Usage

ppc_summary(fit, model_type = NULL, data = NULL, ...)

Arguments

fit

A CmdStanMCMC object from any vitalBayes fitting function.

model_type

Character. Type of model: "growth", "maturity", or "birth". If NULL, auto-detected.

data

Optional data.table with observed data for additional checks.

...

Additional arguments (currently unused).

Value

A list with class "vitalBayes_ppc" containing diagnostic summaries.

See also

vignette("model_diagnostics") for comprehensive diagnostic workflow.

Statistical Methods: Model Assessment for posterior predictive check theory.

compute_loo, compare_loo, plot_residuals

Examples

if (FALSE) { # \dontrun{
ppc <- ppc_summary(growth_fit, model_type = "growth")
print(ppc)
} # }