mbd_two: Multinomial Dirichlet Bayes Draw Two Candidates

View source: R/mbd_two.R

mbd_twoR Documentation

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)

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)

Value

List with two data frames

Author(s)

Loren Collingwood <loren.collingwood@ucr.edu>


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