R Dataset / Package pscl / ca2006
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. Try to load the ca2006 data set in R by issuing the following command at the console data("ca2006"). This may 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 with library("pscl") followed by data("ca2006"). Perhaps strangley, if R gives you no output after entering a command, it means the command succeeded. If it succeeded you can see the data by typing ca2006 at the command-line which should display the entire dataset.
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.
California Congressional Districts in 2006
Election returns and identifying information, California's 53 congressional districts in the 2006 Congresisonal elections.
A data frame with 53 observations on the following 11 variables.
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.
Michael Baraon and Richard E. Cohen. 2006. The Almanac of American Politics, 2006. National Journal Group: Washington, D.C.
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 <- "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.
How To Register With a Username
How To Register With Google Single Sign On (SSO)
How To Login With a Username and Password
How To Login With Google Single Sign On (SSO)
How To Import a Dataset
How To Perform Statistical Analysis with Picostat
How To Use Educational Applications with Picostat
|Recent Queries For This Dataset|
No queries made on this dataset yet.
|Title||Authored on||Content type|
|R Dataset / Package datasets / sunspot.year||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package datasets / airmiles||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package Stat2Data / SampleFG||March 9, 2018 - 1:06 PM||Dataset|
|OpenIntro Statistics Dataset - toy_anova||August 9, 2020 - 2:38 PM||Dataset|
|swiss||February 26, 2017 - 11:28 AM||Dataset|