pseudo_rank: Add pseudo-rank to missing values

View source: R/pseudo_rank.R

pseudo_rankR 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))

agrobioinfoservices/gosset documentation built on March 13, 2024, 11:23 a.m.