This function produces density plots of the different types of parameters in an idealstan
model: item (bill) difficulty and discrimination
parameters, and person (legislator) ideal points.
id_plot_all_hist(object, params = "person", param_labels = NULL,
dens_type = "all", return_data = FALSE, func = median, ...)
A fitted idealstan
object
Select the type of parameter from the model to plot. 'person'
for person/legislator ideal points,
'miss_diff'
and 'miss_discrim'
for difficulty and discrimination parameters from the missing/inflated item/bill parameters,
and 'regular_diff'
and 'regular_discrim'
for difficulty and discrimination parameters from the non-missing/non-inflated
item/bill parameters.
A vector of labels equal to the number of parameters. Primarily useful if return_data
is TRUE
.
Can be 'all'
for showing 90
Or to show one of those posterior estimates at a time, use 'high'
for 90
'low'
for 10
in func
(median by default).
Whether or not to return the plot as a ggplot2 object and the data together in a list instead of plotting.
The function to use if 'dens_type'
is set to 'function'
.
Other options passed on to the plotting function, currently ignored.