id_plot_all_hist: Density plots of Posterior Parameters

Description Usage Arguments

View source: R/Plot.R

Description

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.

Usage

1
2
id_plot_all_hist(object, params = "person", param_labels = NULL,
  dens_type = "all", return_data = FALSE, func = median, ...)

Arguments

object

A fitted idealstan object

params

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.

param_labels

A vector of labels equal to the number of parameters. Primarily useful if return_data is TRUE.

dens_type

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).

return_data

Whether or not to return the plot as a ggplot2 object and the data together in a list instead of plotting.

func

The function to use if 'dens_type' is set to 'function'.

...

Other options passed on to the plotting function, currently ignored.


saudiwin/idealstan documentation built on July 12, 2019, 4:24 a.m.