Learn R Programming

elec (version 0.1.2.2)

make.cartoon: Make the cartoon example from the CAST paper as a voter data matrix.

Description

This makes the sample scenario described in P. B. Stark's CAST paper.

Usage

make.cartoon(n = 400, vote.dist = c(125, 113, 13), stratify = TRUE)

Arguments

n

Size of sample.

vote.dist

reported votes for C1, C2, and C3 in order for all precincts.prompt

stratify

Should the sample be stratified?