id_plot_ppc | R Documentation |
idealstan
ObjectsThis function is the generic method for generating posterior distributions
from a fitted idealstan
model. Functions are documented in the
actual method.
id_plot_ppc(object, ...)
object |
A fitted |
... |
Other arguments passed on to |
This function is a wrapper around bayesplot::ppc_bars()
,
bayesplot::ppc_dens_overlay()
and
bayesplot::ppc_violin_grouped()
that plots the posterior predictive distribution
derived from id_post_pred()
against the original data. You can also subset the
posterior predictions over
legislators/persons or
bills/item sby specifying the ID of each in the original data as a character vector.
Only persons or items can be specified,
not both.
If you specify a value for group
that is either a person ID or a group ID
(depending on whether a person or group-level model was fit), then you can see the
posterior distributions for those specific persons. Similarly, if an item ID is passed
to item
, you can see how well the model predictions compare to the true values
for that specific item.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.