| pp_check.bmmfit | R Documentation |
For models where brms provides pp_check support, this method delegates to
brms::pp_check(). For models with multinomial families (e.g., the m3
model), brms's pp_check is unavailable; this method dispatches to a
model-specific visualisation instead.
## S3 method for class 'bmmfit'
pp_check(object, type = "dens_overlay", ndraws = NULL, group = NULL, ...)
object |
A |
type |
Character. Type of pp_check (default |
ndraws |
Integer. Number of posterior draws. Defaults to |
group |
Character. Optional grouping variable for faceting. For
non-multinomial models, passed to |
... |
Additional arguments forwarded to |
For multinomial models, the plot mirrors the bayesplot ppc_bars style:
observed proportions are shown as bars and posterior predictive medians with
credible intervals are shown as point-ranges, using the bayesplot default
colour scheme and theme.
For multinomial models, a ggplot2 object. For other models, the
result of brms::pp_check().
brms::pp_check()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.