Learn R Programming

eiCompare (version 3.0.4)

get_results_table: Get results dataframe from a list of results as from ei_est_gen

Description

Get results dataframe from a list of results as from ei_est_gen

Usage

get_results_table(
  district_results,
  cand_col,
  race_col,
  n_cand,
  n_race,
  n_iter,
  add_other = TRUE
)

Value

a dataframe of results that will work with table comparison funcs.

Arguments

district_results

A list of dataframes computed in the midst of ei_iter

cand_col

Passed through from ei_iter

race_col

Passed through from ei_iter

n_cand

Passed through from ei_iter

n_race

Passed through from ei_iter

n_iter

Passed through from ei_iter

add_other

A boolean. If true, adds an 'other' column to the output when only one race group is included. Generally, set TRUE for ei_iter, FALSE for ei_good.

Author

Ari Decter-Frain <agd75@cornell.edu>