R Dataset / Package pscl / UKHouseOfCommons

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-ukhouseofcommons.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-65134.csv 43.35 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 UKHouseOfCommons data set which pertains to 1992 United Kingdom electoral returns. The UKHouseOfCommons data set is found in the pscl R package. You can load the UKHouseOfCommons data set in R by issuing the following command at the console data("UKHouseOfCommons"). This will load the data into a variable called UKHouseOfCommons. If R says the UKHouseOfCommons 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 UKHouseOfCommons R data set. The size of this file is about 44,388 bytes.

Documentation

1992 United Kingdom electoral returns

Description

Electoral returns, selected constituencies, 1992 general election for the British House of Commons

Usage

data(UKHouseOfCommons)

Format

A data frame with 521 observations on the following 12 variables.

constituency

a character vector, name of the House of Commons constituency

county

a character vector, county of the House of Commons constituency

y1

a numeric vector, log-odds of Conservative to LibDem vote share

y2

a numeric vector, log-odds of Labor to LibDem vote share

y1lag

a numeric vector, y1 from previous election

y2lag

a numeric vector, y2 from previous election

coninc

a numeric vector, 1 if the incumbent is a Conservative, 0 otherwise

labinc

a numeric vector, 1 if the incumbent is from the Labor Party, 0 otherwise

libinc

a numeric vector, 1 if the incumbent is from the LibDems, 0 otherwise

v1

a numeric vector, Conservative vote share (proportion of 3 party vote)

v2

a numeric vector, Labor vote share (proportion of 3 party vote)

v3

a numeric vector, LibDem vote share (proportion of 3 party vote)

Details

These data span only 521 of the 621 seats in the House of Commons at the time of 1992 election. Seats missing either a Conservative, Labor, or a LibDem candidate appear to have been dropped.

The original Katz and King data set does not have case labels. I used matches to an additional data source to recover a set of constituency labels for these data; labels could not recovered for two of the constituencies.

Source

Jonathan Katz; Gary King. 1999. "Replication data for: A Statistical Model of Multiparty Electoral Data", http://hdl.handle.net/1902.1/QIGTWZYTLZ

References

Katz, Jonathan and Gary King. 1999. “A Statistical Model for Multiparty Electoral Data”. American Political Science Review. 93(1): 15-32.

Jackman, Simon. 2009. Bayesian Analysis for the Social Sciences. Wiley: Chichester. Example 6.9.

Examples

data(UKHouseOfCommons)
tmp <- UKHouseOfCommons[,c("v1","v2","v3")] 
summary(apply(tmp,1,sum))col <- rep("black",dim(tmp)[1])
col[UKHouseOfCommons$coninc==1] <- "blue"
col[UKHouseOfCommons$labinc==1] <- "red"
col[UKHouseOfCommons$libinc==1] <- "orange"library(vcd)
vcd::ternaryplot(tmp,
                 dimnames=c("Cons","Lab","Lib-Dem"),
                 labels="outside",
                 col=col,
                 pch=1,
                 main="1992 UK House of Commons Election",
                 cex=.75)
--

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

Recent Queries For This Dataset

No queries made on this dataset yet.