posterior_predictive: Posterior predictive check

View source: R/bayes-diagnostics.R

posterior_predictiveR Documentation

Posterior predictive check

Description

Simulates data from the posterior predictive distribution and compares summary statistics (variance, autocorrelation) with the observed data. This helps assess whether the estimated model can reproduce key features of the data.

Usage

posterior_predictive(object, ...)

Arguments

object

A "dsge_bayes" object.

...

Additional arguments passed to methods (e.g., n_draws, statistics, seed).

Value

An object of class "dsge_ppc" with posterior predictive distributions and p-values for each statistic.


dsge documentation built on Sept. 25, 2026, 5:08 p.m.