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.
Read canonical final means or one sample using the prepared point policy. |
|
Sample actual parameter and response priors, excluding calibration auxiliaries. |
|
Draw responses and requested probability/shape outputs in one native forward operation. |
|
Select real observed/replicated responses for one compatible block or item. |
|
Evaluate missing marginal factors at the current posterior's final nodes. |
|
Compute a Pearson posterior predictive p-value at matched MCMC states. |
|
Return observed-minus-expected response residuals at actual posterior states. |
|
Plot saved D_rep-D_obs aggregates without changing check statistics. |
|
Calculate log-scale WAIC with population-variance pointwise penalties. |
|
Calculate pV = Var_draw(D)/2 within each chain, then average over chains. |