d_dublinwest: Dublin West Data (partial orderings)

Description Usage Format Source References Examples

Description

The Dublin West dataset (d_dublinwest) contains the results of the voting ballots of the 2002 Irish general election from the Dublin West constituency. The Irish voting system allows voters to rank the candidates in order of preferences, rather than only specify the favorite one. In the Dublin West constituency, N=29988 voters ranked a maximum of K=9 candidates, labeled as: 1 = Bonnie R., 2 = Burton J., 3 = Doherty-Ryan D., 4 = Higgins J., 5 = Lenihan B., 6 = McDonald M., 7 = Morrissey T., 8 = Smyth J. and 9 = Terry S.. The dataset is composed of partial top orderings of varying lengths. Missing positions are denoted with zero entries.

Usage

1

Format

Object of S3 class c("top_ordering","matrix") gathering a partial orderings with N=29988 rows and K=9 columns. Each row lists the candidates from the most-liked (Rank_1) to the least-liked (Rank_9) in a given voting ballot.

Source

The 2002 Dublin West data have been downloaded from http://www.preflib.org/ PrefLib: A Library for Preferences. In that repository, preferences with ties are also included. The original source was publicly available from the Dublin County Returning Officer at the following URL: https://dublincountyreturningofficer.com/.

References

Mattei, N. and Walsh, T. (2013) PrefLib: A Library of Preference Data. Proceedings of Third International Conference on Algorithmic Decision Theory (ADT 2013). Springer, Lecture Notes in Artificial Intelligence, November 13-15, 2013.

Gormley, I. C. and Murphy, T. B. (2009). A grade of membership model for rank data. Bayesian Analysis, 4(2), pages 65–295.

Gormley, I. C. and Murphy, T. B. (2008). Exploring Voting Blocs Within the Irish Electorate: A Mixture Modeling Approach. Journal of the America Statistical Association, 103(483), pages 1014–1027.

Examples

1
2
3
4
5
6
data(d_dublinwest)
head(d_dublinwest)

## Subset of complete sequences
d_dublinwest_compl=d_dublinwest[rowSums(d_dublinwest!=0)>=(ncol(d_dublinwest)-1),]
head(d_dublinwest_compl)

Example output

     rank1 rank2 rank3 rank4 rank5 rank6 rank7 rank8 rank9
[1,]     7     9     4     2     8     0     0     0     0
[2,]     5     3     7     6     0     0     0     0     0
[3,]     5     7     3     0     0     0     0     0     0
[4,]     9     2     7     0     0     0     0     0     0
[5,]     3     2     0     0     0     0     0     0     0
[6,]     5     3     2     0     0     0     0     0     0
     rank1 rank2 rank3 rank4 rank5 rank6 rank7 rank8 rank9
[1,]     2     9     4     1     5     6     3     7     8
[2,]     7     5     3     9     2     8     1     6     4
[3,]     2     9     4     5     7     1     3     8     6
[4,]     4     9     2     7     1     8     6     3     5
[5,]     5     3     2     4     1     7     9     8     6
[6,]     7     2     9     1     5     3     6     8     4

PLMIX documentation built on Sept. 4, 2019, 5:03 p.m.