Learn R Programming

pscl (version 1.4.6)

UKHouseOfCommons: 1992 United Kingdom electoral returns

Description

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

Usage

data(UKHouseOfCommons)

Arguments

source

Jonathan Katz; Gary King. 1999. "Replication data for: A Statistical Model of Multiparty Electoral Data", http://hdl.handle.net/1902.1/QIGTWZYTLZ Martin Baxter. http://www.electoralcalculus.co.uk/electdata_1992ob.txt

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.

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

Run this code
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)

Run the code above in your browser using DataLab