eiCompare (version 3.0.4)

ei_rc_good_table: Create EI Comparison Table

Description

Takes output from EI model, EI RxC model, Goodman regression, and puts them into a data frame table for useful analysis and comparison.

Usage

ei_rc_good_table(ei, rc, good, groups, include_good = FALSE)

Value

Object of class ei_compare containing a 1. data.frame() slot of comparisons across the three models; 2. Character vector of group names used for later plotting

Arguments

ei

Table/data frame object result from ei_est_gen. This assumes beta_yes=FALSE in ei_est_gen(). See example below for beta_yes=TRUE in ei_est_gen().

rc

Table/data frame from EI:RxC process from bayes_table_make()

good

Table/data frame from Goodman regression, from goodman_generalize(). Default is nothing

groups

Character vector of voting blocks (e.g., c("Latino", "White"))

include_good

Logical, default is FALSE, Set to TRUE if including a Goodman table/data object

Author

Loren Collingwood <loren.collingwood@ucr.edu>

References

eiPack, King et. al. (http://gking.harvard.edu/eiR)