Learn R Programming

eiCompare (version 3.0.4)

mbd_two: Multinomial Dirichlet Bayes Draw Two Candidates

Description

Extract posterior means and credible intervals. Need to label candidate vote variables: V1, V2, when two=FALSE, add V3; Hispanic = VtdHVap_cor, White = VtdAVap_cor, Black = VtdBVap_cor

Usage

mbd_two(md, colnames, two = TRUE)

Value

List with two data frames

Arguments

md

object from ei.MD.bayes() return

colnames

Vector of candidate names. Stick to c(V1,V2) or c(V1,V2,V3)

two

Logical. Two candidates (TRUE), or three (FALSE)

Author

Loren Collingwood <loren.collingwood@ucr.edu>