Learn R Programming

PLMIX (version 2.1.1)

d_apa: American Psychological Association Data (partial orderings)

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

data(d_apa)

Arguments

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab