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

View source: R/make_truth_functions.R

make.cartoonR Documentation

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?


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