Learn R Programming

gosset (version 1.4)

pseudo_rank: Add pseudo-rank to missing values

Description

Add pseudo-rank to missing values

Usage

pseudo_rank(object, ...)

Value

a matrix or PlackettLuce rank

Arguments

object

a matrix or PlackettLuce rank

...

additional arguments passed to methods

Examples

Run this code
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))

Run the code above in your browser using DataLab