Learn R Programming

elec (version 0.1.2.2)

santa.cruz.audit: Santa Cruz Election Data

Description

santa.cruz and santa.cruz.audit hold data from a Santa Cruz County, CA, contest held in November, 2008, for County Supervisor in the 1st District. The competitive candidates were John Leopold and Betty Danner. According to the semi-official results provided to us by the Santa Cruz County Clerk's office, Leopold won with votes on 45% of the 26,655 ballots. Danner received the votes on 37% of the ballots. The remaining ballots were undervoted, overvoted, or had votes for minor candidates.

santa.cruz.audit holds the audit totals for the random sample of precincts selected for the audit. Note the santa.cruz.audit vote counts are larger for some precincts due the missing provisional ballot counts in the semi-official results.

Arguments

Format

A data frame with 16 observations on the following 4 variables.

PID

Precinct IDs (unique) for all precincts involved in race

leopold

Total number of ballots marked for John Leopold.

danner

Total number of ballots marked for Betty Danner.

count

The number of times precinct was sampled in the PPEB sample taken.

See Also

santa.cruz. For an illustration of analyzing this data, see the example in trinomial.bound.

Examples

Run this code
# NOT RUN {
data(santa.cruz.audit)
data(santa.cruz)
santa.cruz = elec.data(santa.cruz, C.names=c("leopold","danner"))
trinomial.audit( santa.cruz, santa.cruz.audit )

# }

Run the code above in your browser using DataLab