make.sample.from.totals: Make sample from vote totals (for simulations)

View source: R/make_sample.R

make.sample.from.totalsR 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.


elec documentation built on April 27, 2022, 1:05 a.m.