R Dataset / Package pscl / AustralianElectionPolling

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-australianelectionpolling.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-52465.csv 26.26 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 AustralianElectionPolling data set which pertains to Political opinion polls in Australia, 2004-07. The AustralianElectionPolling data set is found in the pscl R package. You can load the AustralianElectionPolling data set in R by issuing the following command at the console data("AustralianElectionPolling"). This will load the data into a variable called AustralianElectionPolling. If R says the AustralianElectionPolling 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 AustralianElectionPolling R data set. The size of this file is about 26,888 bytes.

Documentation

Political opinion polls in Australia, 2004-07

Description

The results of 239 published opinion polls measuring vote intentions (1st preference vote intention in a House of Representatives election) between the 2004 and 2007 Australian Federal elections, from 4 survey houses.

Usage

data(AustralianElectionPolling)

Format

A data frame with 239 observations on the following 14 variables.

ALP

a numeric vector, percentage of respondents reported as intending to vote for the Australian Labor Party

Lib

a numeric vector, percentage of respondents reported as intending to vote for the Liberal Party

Nat

a numeric vector, percentage of respondents reported as intending to vote for the National Party

Green

a numeric vector, percentage of respondents reported as intending to vote for the Greens

FamilyFirst

a numeric vector, percentage of respondents reported as intending to vote for the Family First party

Dems

a numeric vector, percentage of respondents reported as intending to vote for the Australian Democrats

OneNation

a numeric vector, percentage of respondents reported as intending to vote for One Nation

DK

a numeric vector, percentage of respondents reported as expressing no preference or a “don't know” response

sampleSize

a numeric vector, reported sample size of the poll

org

a factor with levels Galaxy, Morgan, F2F, Newspoll, Nielsen and Morgan, Phone, indicating the survey house and/or mode of the poll

startDate

a Date, reported start of the field period

endDate

a Date, reported end of the field period

source

a character vector, source of the poll report

remark

a character vector, remarks noted by author and/or research assistant coders

Details

Morgan uses two modes: phone and face-to-face.

The 2004 Australian election was on October 9; the ALP won 37.6% of the 1st preferences cast in elections for the House of Representatives. The ALP won the 2007 election (November 24) with 43.4% of 1st preferences.

The ALP changed leaders twice in the 2004-07 inter-election period spanned by these data: (1) Mark Latham resigned the ALP leadership on January 18 2005 and was replaced by Kim Beazley; (2) Beazley lost the ALP leadership to Kevin Rudd on December 4, 2006.

The then Prime Minister, John Howard, announced the November 2007 election on October 14, 2007.

Source

See the source variable. Andrea Abel assisted with the data collection.

References

Jackman, Simon. 2009. Bayesian Analysis for the Social Sciences. Wiley: Hoboken, New Jersey. Example 9.3.

Examples

data(AustralianElectionPolling)
lattice::xyplot(ALP ~ startDate | org, 
       data=AustralianElectionPolling,
       layout=c(1,5),
       type="b",
       xlab="Start Date",
       ylab="ALP")## test for house effects
y <- AustralianElectionPolling$ALP/100
v <- y*(1-y)/AustralianElectionPolling$sampleSize
w <- 1/v
m1 <- mgcv::gam(y ~ s(as.numeric(startDate)),
          weight=w,	      
          data=AustralianElectionPolling)
m2 <- update(m1, ~ . + org)
anova(m1,m2)
--

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

Recent Queries For This Dataset

No queries made on this dataset yet.