#statstab #496 Posterior predictive checks {performance}
Thoughts: Idk why more frequentist don't use ppc for their models. I can diagnose so many issues visually this way.
#error #posterior #ppc #modelfit #diagnostics #model #r #rstats #easystats
https://easystats.github.io/performance/reference/check_predictions.html

Posterior predictive checks — check_predictions
Posterior predictive checks mean "simulating replicated data under the fitted model and then comparing these to the observed data" (Gelman and Hill, 2007, p. 158). Posterior predictive checks can be used to "look for systematic discrepancies between real and simulated data" (Gelman et al. 2014, p. 169). performance provides posterior predictive check methods for a variety of frequentist models (e.g., lm, merMod, glmmTMB, ...). For Bayesian models, the model is passed to bayesplot::pp_check(). If check_predictions() doesn't work as expected, try setting verbose = TRUE to get hints about possible problems.

