make.sample.from.totals {elec} | R Documentation |
Make sample from vote totals (for simulations)
Description
Given a vector of precinct totals and the total votes for the winner and the loser, make a plausible precinct-by-precinct vote count that works. Note: the margins of the precincts will all be the same as the margin of the overall race.
Usage
make.sample.from.totals(vote.W, vote.L, totals)
Arguments
vote.W |
Total votes for winner. |
vote.L |
Total votes for loser. |
totals |
Vector of total votes for precincts. |
[Package elec version 0.1.2.2 Index]