destat {pmr} | R Documentation |
Descriptive statistics of a ranking dataset
Description
Computing the descriptive statistics (mean rank, pairs matrix, and marginals matrix) of a ranking dataset.
Usage
destat(dset)
Arguments
dset |
a ranking dataset (aggregated) |
Value
mean.rank |
Mean rank of the items. |
pair |
The number of observations which the first item (row) is more preferred than the second item (column). |
mar |
The number of observations which the item i (row) is ranked j (column). |
Author(s)
Paul H. Lee and Philip L. H. Yu
Examples
## create an artificial dataset
X1 <- c(1,1,2,2,3,3)
X2 <- c(2,3,1,3,1,2)
X3 <- c(3,2,3,1,2,1)
n <- c(6,5,4,3,2,1)
test <- data.frame(X1,X2,X3,n)
## compute the descriptive statistics of the artificial dataset
## destat(test)
[Package pmr version 1.2.5.1 Index]