R: US 2004 presidential election data at state or county level
election
R Documentation
US 2004 presidential election data at state or county level
Description
A sample of voting data from US states or counties (depending on data
availability), sampled with probability proportional to number of votes. The sample was drawn using Tille's splitting method, implemented in the "sampling" package.
Usage
data(election)
Format
election is a data frame with 4600 observations on the following 8 variables.
County
A factor specifying the state or country
TotPrecincts
Number of precincts in the state or county
PrecinctsReporting
Number of precincts supplying data
Bush
Votes for George W. Bush
Kerry
Votes for John Kerry
Nader
Votes for Ralph Nader
votes
Total votes for those three candidates
p
Sampling probability, proportional to votes
election_pps is a sample of 40 counties or states taken with
probability proportional to the number of votes. It includes the
additional column wt with the sampling weights.
election_insample indicates which rows of election were sampled.
election_jointprob are the pairwise sampling probabilities and
election_jointHR are approximate pairwise sampling probabilities using
the Hartley-Rao approximation.