d_apa: American Psychological Association Data (partial orderings)

Description Usage Format References Examples

Description

The popular American Psychological Association dataset (d_apa) contains the results of the voting ballots of the 1980 presidential election. A total of N=15449 voters ranked a maximum of K=5 candidates, conventionally classified as research psychologists (candidate 1 and 3), clinical psychologists (candidate 4 and 5) and community psychologists (candidate 2). The winner of the election was candidate 3. 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 matrix of partial orderings with N=15449 rows and K=5 columns Each row lists the candidates from the most-liked (Rank_1) to the least-liked (Rank_5) in a given voting ballot.

References

Mollica, C. and Tardella, L. (2017). Bayesian Plackett-Luce mixture models for partially ranked data. Psychometrika, 82(2), pages 442–258, ISSN: 0033-3123, DOI: 10.1007/s11336-016-9530-0.

Diaconis, P. W. (1988). Group representations in probability and statistics. Lecture Notes-Monograph Series, pages 94–96.

Diaconis, P. W. (1987). Spectral analysis for ranked data. Technical Report 282, Dept of Statistics, Stanford University.

Examples

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

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

Example output

     rank1 rank2 rank3 rank4 rank5
[1,]     5     0     0     0     0
[2,]     5     0     0     0     0
[3,]     5     0     0     0     0
[4,]     5     0     0     0     0
[5,]     5     0     0     0     0
[6,]     5     0     0     0     0
     rank1 rank2 rank3 rank4 rank5
[1,]     5     4     3     2     1
[2,]     5     4     3     2     1
[3,]     5     4     3     2     1
[4,]     5     4     3     2     1
[5,]     5     4     3     2     1
[6,]     5     4     3     2     1

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