pseudo_rank {gosset}R Documentation

Add pseudo-rank to missing values

Description

Add pseudo-rank to missing values

Usage

pseudo_rank(object, ...)

Arguments

object

a matrix or PlackettLuce rank

...

additional arguments passed to methods

Value

a matrix or PlackettLuce rank

Examples

library("PlackettLuce")
R = matrix(c(1, 2, 0, 0,
              4, 1, 0, 3,
              2, 1, 0, 3,
              1, 2, 0, 0,
              2, 1, 0, 0,
              1, 0, 0, 2), nrow = 6, byrow = TRUE)
colnames(R) = c("apple", "banana", "orange", "pear")

# summary(PlackettLuce(R))

R = pseudo_rank(R)

summary(PlackettLuce(R))

[Package gosset version 1.3 Index]