md_bayes_table: MD Bayes Generalize Table Creation

Description Usage Arguments Value Author(s) References Examples

Description

This, combined with md_bayes_gen() produces tables of results compatible with EI table of results.

Usage

1
  md_bayes_table(md_results)

Arguments

md_results

Results object from md_bayes_gen() function.

Value

Data.frame object of candidate (rows) and race (columns) RxC results. This, combined with results from ei_est_gen() sends to the ei_rc_good_table() function for combined table results and comparisons.

Author(s)

Loren Collingwood <loren.collingwood@ucr.edu>

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
  
  # TOY DATA EXAMPLE
  canda <- c(10,8, 10, 4, 8)
  candb <- 20-canda
  white <- c(15, 12, 18, 6, 10)
  black <- 20 - white
  toy <- data.frame(canda, candb, white, black)
  
  # Generate formula for passage to ei.reg.bayes() function
  form <- formula(cbind(canda,candb) ~ cbind(black, white)) 
  
  # Then execute md_bayes_gen(); not run here due to time
  res <- md_bayes_gen(toy, form, total_yes=FALSE, ntunes=1, thin=1,totaldraws=100,sample=10,burnin=1, 
               ci_TRUE=F)
            
  md_bayes_table(res)

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