ei_rc_congruence: Congruence for 2x2

Description Usage Arguments Value Author(s) Examples

Description

Calculates congruence scores between EI and RxC for the 2x2 Scenario

Usage

1
ei_rc_congruence(ei_rc_table, cand_race, group_race)

Arguments

ei_rc_table

Object produced from ei_rc_good_table(), where include_good=F, of class ei_compare

cand_race

Numeric vector indicating race of the candidates in order they show up in table rownames, where 1=Latino; 2=Black; 3=Asian; 4=White/Non

group_race

Numeric vector, taking similar values as cand_race where 1=Latino; 2=Black; 3=Asian; 4=White/Non

Value

Table of congruence scores

Author(s)

Loren Collingwood <loren.collingwood@ucr.edu>, Matt Barreto <barretom@ucla.edu>

Examples

1
2
3
4
5
6
7
# LA County 2010 Insurance Commissioner Race
#ei_rc_combine <- ei_rc_good_table(results, ei_bayes_res, 
#                                  groups= c("Latino", "Non Latino"))

load ( system.file("extdata/congruence_table.RData",package="eiCompare") )

ei_rc_congruence(ei_rc_combine2_2, c(1,4), c(1,4)) 

lorenc5/eiCompare documentation built on June 5, 2019, 5:18 p.m.