paired_comparisons: Paired comparison matrix for a partial ordering/ranking...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/PLMIXfunctions.R

Description

Construct the paired comparison matrix for a partial ordering/ranking dataset.

Usage

1
paired_comparisons(data, format_input, nranked = NULL)

Arguments

data

Numeric NxK data matrix of partial sequences.

format_input

Character string indicating the format of the data input, namely "ordering" or "ranking".

nranked

Optional numeric vector of length N with the number of items ranked by each sample unit.

Value

Numeric KxK paired comparison matrix: the (i,i')-th entry indicates the number of sample units that preferred item i to item i'.

Author(s)

Cristina Mollica and Luca Tardella

References

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

See Also

rank_summaries

Examples

1
2

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