Description Usage Arguments Value
Plots histograms showing empirical coverage of credible intervals specified using 'levels'. Can bucket by time period, by group, by whether the observation is new (not used in fitting).
1 2 3 4 5 6 7 8 9 10 |
object |
A fitted model object returned by |
type |
A string specifying the name of the observations to plot. This should match one
of the names of the response variables in the |
newdata |
If provided, the original |
groups |
Either |
levels |
A numeric vector defining the levels of the plotted credible intervals. |
period |
Buckets computed empirical probabilities into time periods if specified. |
by_group |
Plot coverage for each group individually |
by_unseen |
Plot coverage separately for seen and unseen observations. Observations are 'seen' if they were used for fitting. |
A ggplot
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.