Perform Posterior Predictive Check
plot_pp_check.Rd
Given a brms model, perform a graphical posterior predictive check (PPC).
brms::pp_check()
has different plot types to analyze the model fit by
comparing the observed data with generated data from the model.
Here is the documentation for brms::pp_check: http://paul-buerkner.github.io/brms/reference/pp_check.brmsfit.html
Here is the documentation for bayesplot::pp_check plot types under PPC plotting functions: https://mc-stan.org/bayesplot/reference/PPC-overview.html
Arguments
- model
brms::brmsfit model.
- plot_type
character
for the plot type.- n
numeric
number of posterior draws to be used.- ...
additional arguments to
brms::pp_check()
.
Value
ggplot2::ggplot object.