R Dataset / Package pscl / ca2006

How To Create a Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Stacked Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Pie Chart

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Compute the Mean

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Plot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How to Compute the Median

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Boxplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Correlation Coefficient

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Cumulative Frequency Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Dotplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Hollow Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Numerical Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Pie Chart

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Plot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Regression

Stem and Leaf Plots

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Visual Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.
Embed
<iframe src="https://embed.picostat.com/r-dataset-package-pscl-ca2006.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-60464.csv 3.98 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0
Dataset Help

On this Picostat.com statistics page, you will find information about the ca2006 data set which pertains to California Congressional Districts in 2006. The ca2006 data set is found in the pscl R package. You can load the ca2006 data set in R by issuing the following command at the console data("ca2006"). This will load the data into a variable called ca2006. If R says the ca2006 data set is not found, you can try installing the package by issuing this command install.packages("pscl") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the ca2006 R data set. The size of this file is about 4,078 bytes.

Documentation

California Congressional Districts in 2006

Description

Election returns and identifying information, California's 53 congressional districts in the 2006 Congresisonal elections.

Usage

data(ca2006)

Format

A data frame with 53 observations on the following 11 variables.

district

numeric, number of Congressional district

D

numeric, number of votes for the Democratic candidate

R

numeric, votes for the Republican candidate

Other

numeric, votes for other candidates

IncParty

character, party of the incumbent (or retiring member), D or R

IncName

character, last name of the incumbent, character NA if no incumbent running

open

logical, TRUE if no incumbent running

contested

logical, TRUE if both major parties ran candidates

Bush2004

numeric, votes for George W. Bush (R) in the district in the 2004 presidential election

Kerry2004

numeric, votes for John Kerry (D) in 2004

Other2004

numeric votes for other candidates in 2004

Bush2000

numeric, votes for George W. Bush in 2000

Gore2000

numeric, votes for Al Gore (D) in 2000

Source

2006 data from the California Secretary of State's web site, http://vote2006.sos.ca.gov/Returns/usrep/all.htm. 2004 and 2000 presidential vote in congressional districts from the 2006 Almanac of American Politics.

Thanks to Arthur Aguirre for the updated links, above.

References

Michael Baraon and Richard E. Cohen. 2006. The Almanac of American Politics, 2006. National Journal Group: Washington, D.C.

Examples

data(ca2006)## 2006 CA congressional vote against 2004 pvote
y <- ca2006$D/(ca2006$D+ca2006$R)
x <- ca2006$Kerry2004/(ca2006$Kerry2004+ca2006$Bush2004)pch <- rep(19,length(y))
pch[ca2006$open] <- 1
col <- rep("black",length(y))
col[11] <- "red"    ## Pembo (R) loses to McNerney (D)
plot(y~x,pch=pch,
     col=col,
     xlim=range(x,y,na.rm=TRUE),
     ylim=range(x,y,na.rm=TRUE),
     xlab="Kerry Two-Party Vote, 2004",
     ylab="Democratic Two-Party Vote Share, 2006")
abline(0,1)
abline(h=.5,lty=2)
abline(v=.5,lty=2)
legend(x="topleft",
       bty="n",
       col=c("red","black","black"),
       pch=c(19,19,1),
       legend=c("Seat Changing Hands",
         "Seat Retained by Incumbent Party",
         "Open Seat (no incumbent running)")
       )
--

Dataset imported from https://www.r-project.org.

Recent Queries For This Dataset

No queries made on this dataset yet.