Compares data simulated from posterior parameter draws (see
posterior_predictive()) with the observed data, one marginal histogram per
data dimension with the observation marked. If the observation falls in the
tails of the predictive distribution, the model (or the fit) does not
reproduce the data it is conditioned on.
Arguments
- pred
A matrix of predictive draws from
posterior_predictive().- x_obs
The observed data vector the posterior was conditioned on.
- labels
Optional labels for the data dimensions. Defaults to
colnames(pred)(set automatically when the simulator names its output columns) orx[1],x[2], .... Labels that parse as R syntax render as their plotmath symbol.- bins
Number of histogram bins.
