R Dataset / Package pscl / AustralianElections
On this Picostat.com statistics page, you will find information about the AustralianElections data set which pertains to elections to Australian House ofRepresentatives, 1949-2007. The AustralianElections data set is found in the pscl R package. Try to load the AustralianElections data set in R by issuing the following command at the console data("AustralianElections"). This may load the data into a variable called AustralianElections. If R says the AustralianElections 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("AustralianElections"). 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 AustralianElections 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 AustralianElections R data set. The size of this file is about 2,030 bytes.
elections to Australian House of Representatives, 1949-2007
Aggregate data on the 24 elections to Australia's House of Representatives, 1949 to 2007.
A data frame with the following variables:
Australian Electoral Commission. http://www.aec.gov.au.
Jackman, Simon. 2009. Bayesian Analysis for the Social Sciences. Wiley: Hoboken, New Jersey. Example 3.5.
data(AustralianElections) attach(AustralianElections) alpSeatShare <- ALPSeats/Seats alpVoteShare <- ALP2PP/100## log-odds transforms x <- log(alpVoteShare/(1-alpVoteShare)) y <- log(alpSeatShare/(1-alpSeatShare))ols <- lm(y~x) ## Tufte-style seats-votes regressionxseq <- seq(-4.5,4.5,length=500) yhat <- coef(ols) + coef(ols)*xseq yhat <- exp(yhat)/(1+exp(yhat)) xseq <- exp(xseq)/(1+exp(xseq))## seats vote curve plot(x=alpVoteShare, y=alpSeatShare, xlab="ALP Vote Share", ylab="ALP Seat Share") lines(xseq,yhat,lwd=2) abline(h=.5,lty=2) abline(v=.5,lty=2)
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|
|OpenIntro Statistics Dataset - unemploy_pres||August 9, 2020 - 2:38 PM||Dataset|
|OpenIntro Statistics Dataset - house||August 9, 2020 - 12:25 PM||Dataset|
|R Dataset / Package evir / nidd.annual||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package Stat2Data / WeightLossIncentive4||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package HSAUR / clouds||March 9, 2018 - 1:06 PM||Dataset|