Converting total vote counts to Over Statements
This utility function takes a collection of total votes from an audit and subtracts the originally reported totals from them to give overstatement errors (i.e., how many votes more than actual a candidate had). I.e., the overstatement error is REPORTED - ACTUAL.
Elec.data object holding the originally reported results
A data.frame with one column per candidate that holds the totals from the audit. Each row corresponds to a precinct. Object needs a PID column with precinct ids that match the ones in Z.
Make sure the audit's PID column is a character vector and not a
factor. If needed, convert via
audit\$PID = as.character(audit\$PID).
A new data.frame with overstatement errors.
Luke W. Miratrix
See AuditErrors for different ways of summarizing audit errors.
1 2 3 4 5 6 7 8