Prediction and model checks#

Use prior prediction to examine the implications of priors and posterior prediction to compare replicated and observed answers. Use chi_ppp() for a categorical Pearson check and log_likelihood() for pointwise densities. Match the data and observation units when comparing models.

parameter_point

Read canonical final means or one sample using the prepared point policy.

prior_predictive

Sample actual parameter and response priors, excluding calibration auxiliaries.

posterior_predictive

Draw responses and requested probability/shape outputs in one native forward operation.

predictive_view

Select real observed/replicated responses for one compatible block or item.

log_likelihood

Evaluate missing marginal factors at the current posterior's final nodes.

chi_ppp

Compute a Pearson posterior predictive p-value at matched MCMC states.

residuals

Return observed-minus-expected response residuals at actual posterior states.

plot_ppp

Plot saved D_rep-D_obs aggregates without changing check statistics.

waic

Calculate log-scale WAIC with population-variance pointwise penalties.

dic

Calculate pV = Var_draw(D)/2 within each chain, then average over chains.