Learn R Programming

shinymrp (version 0.10.0)

MRPWorkflow-method-pp_check: Perform posterior predictive check

Description

The $pp_check() method creates posterior predictive check plots to assess model fit by comparing observed data to replicated data from the posterior predictive distribution. Check out the More examples of R6 classes vignette for usage examples.

Usage

pp_check(model, file = NULL, ...)

Value

A ggplot object showing the posterior predictive check result.

Arguments

model

Fitted MRPModel object.

file

Optional file path to save the plot.

...

Additional arguments passed to ggsave, such as width and height.