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

View source: R/ei_utils.R

get_results_tableR Documentation

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
)

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.

Value

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

Author(s)

Ari Decter-Frain <agd75@cornell.edu>


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