Skip to contents

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, ...)

Arguments

model

Fitted MRPModel object.

file

Optional file path to save the plot.

...

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

Value

A ggplot object showing the posterior predictive check result.