idealstan (version 0.7.1)

id_plot_cov: Display Coefficient Plot of Hierarchical Covariates

Description

This function will pull the estimates of the hierarchical covariates (whether at the person or item-discrimination level) and then plot them on a vertical coefficient plot. Names of the parameters are taken from the levels of the factor if a categorical variable and the column names otherwise.

Usage

id_plot_cov(object, cov_type = "person_cov", filter_cov = NULL, ...)

Arguments

object

A fitted idealstan object

cov_type

Either 'person_cov' for person or group-level hierarchical parameters, 'discrim_reg_cov' for bill/item discrimination parameters from regular (non-inflated) model, and 'discrim_infl_cov' for bill/item discrimination parameters from inflated model.

filter_cov

A character vector of coefficients from covariate plots to exclude from plotting (should be the names of coefficients as they appear in the plots)

...

Any additional parameters passed on to mcmc_intervals

Value

A ggplot2 plot that can be further customized with ggplot2 functions if need be.