
Posterior Predictive Intervals Plot
biPOD_ppc_intervals.Rd
Creates a plot displaying posterior predictive intervals for the observed data, providing a visual assessment of how well the model captures data variation over time. The plot shows the credible intervals (uncertainty) of the posterior predictive distribution at each time point.
Arguments
- x
A
bipod
object containing a 'counts' field with the observed data. This data typically represents counts or time series values.- x_fit
A fitted model object containing posterior draws of the replicated data (
yrep
). This object should include posterior samples of the model predictions.- n
An integer specifying the number of posterior predictive draws to use in the plot. (default is 500). The higher the number, the more accurate the representation of the predictive intervals.
Value
A plot displaying the posterior predictive intervals generated using bayesplot::ppc_intervals
. The plot shows how well the model accounts for the observed data.