View source: R/helper_functions.R
plot_pmf | R Documentation |
Plot the empirical probability mass function, i.e., the proportion of
data values y
that equal j
for each j=0,1,...
,
together with the model-based estimate of the probability mass function
based on the posterior predictive distribution.
plot_pmf(y, post.pred, error.bars = FALSE, alpha = 0.05)
y |
|
post.pred |
|
error.bars |
logical; if TRUE, include errors bars on the model-based PMF |
alpha |
confidence level for the credible intervals |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.