ei_rc_good_table: Create EI Comparison Table

View source: R/ei_rc_good_table.R

ei_rc_good_tableR Documentation

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)

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

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

Note

Most of the time the user will not include the Goodman table, as they are interested in the EI vs. EI:RxC comparison

Author(s)

Loren Collingwood <loren.collingwood@ucr.edu>

References

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


eiCompare documentation built on Aug. 31, 2023, 5:16 p.m.