Plot a posterior predictive check
plot_posterior_predictive.RdPlots the replicated outcome proportions (histograms) with the observed proportion (red line), for each arm and outcome. If the model reproduces the data, the red lines fall within the histograms. Requires the ggplot2 package.
Arguments
- ppc
Output of
posterior_predictive_check.
Examples
if (FALSE) { # \dontrun{
ppc <- posterior_predictive_check(fit, eht_data)
plot_posterior_predictive(ppc)
} # }