Posterior Predictive Statistic Check
Source:R/predictive-diagnostics-advanced.R
posterior_predictive_statistic.RdComputes one scalar discrepancy statistic for every posterior predictive draw and compares that distribution with the same statistic in the observed data. The returned probability is descriptive and is not an automatic model verdict.
Usage
posterior_predictive_statistic(
x,
statistic = c("mean", "sd", "median", "q90", "q95", "max", "tail_rate"),
threshold = NULL
)