CAST.sample {elec} | R Documentation |
Sample from the various strata according to the schedule set by 'ns'. Ignore all precincts that are known (i.e., have been previously audited).
Description
Sample from the various strata according to the schedule set by 'ns'. Ignore all precincts that are known (i.e., have been previously audited).
Usage
CAST.sample(
Z,
ns,
strata = NULL,
seed = NULL,
print.trail = FALSE,
known = "known"
)
Arguments
Z |
elec.data object (voter matrix) |
ns |
EITHER an audit.plan or a vector of sample sizes for the strata. Names must correspond ot the names of the strata. If ns is an audit plan, then the strata variable should not be passed as well. |
strata |
Name of the stratification column of Z. Not needed if audit plan also being passed in case of CAST.sample. NULL means single strata. |
seed |
Seed to use–for reproducability. |
print.trail |
Print out diagnostics. |
known |
The column of known precincts that should thus not be selected. Similar to "drop", above. |
Value
: List of precincts to be audited.
Examples
Z = make.cartoon()
samp.info = CAST.calc.sample( Z )
samp.info
samp = CAST.sample( Z, samp.info )
[Package elec version 0.1.2.2 Index]