Means and credible intervals of ySim
with y
overlaid. Modification
of ppc_intervals in the bayesplot package for use with the abdiststan package.
1 2 | pp_int_plot(y, ySim, x = NULL, ..., cred_inner = 0.05,
cred_outer = 0.95, size = 1, fatten = 1, point.size = 2.4)
|
y |
the vector of observed y values |
ySim |
a matrix or data frame of the posterior predictive distribution |
x |
A numeric vector the same length as |
cred_inner |
inner credible interval. Defaults to .05 so that it's not visible. |
cred_outer |
size of posterior interval. Defaults to .95. |
point.size |
size of points representing y. Defaults to 2.4 |
alpha, size, fatten |
Arguments passed to geoms. For ribbon plots
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.