RPVote / eiCompare

Comparing ecological inference techniques
https://rpvote.github.io/voting-rights/
6 stars 7 forks source link

ei_iter() par_compute = T #141

Open lorenc5 opened 1 year ago

lorenc5 commented 1 year ago

The par_compute() argument when set to true can swap the results table around on summary(results).

E.g.:

Parallel Computing

set.seed(18475) ei_results_iter <- ei_iter( data = south_carolina, cand_cols = cands, race_cols = race, totals_col = total, name = "Iter", par_compute = TRUE )

summary(ei_results_iter)

When par_compute is FALSE, the results list out pct_white then pct_black tables; when par_compute = T, the tables are reversed. Results in both are the same but ordering is off.