Learn R Programming

StatMethRank (version 1.3)

compatible.rankings: Set of compatible rankings

Description

This function generates the set of complete permutations compatible with the input_ranking.

Usage

compatible.rankings(input_ranking)

Arguments

input_ranking
a vector, using NAs to stand for the missing ranks

Value

a matrix or a vector, each column is a complete ranking.

Examples

Run this code
u_star = c(2, NA, 3, 4, 1)
C_set = compatible.rankings(u_star)
is.compatible(C_set, u_star)

Run the code above in your browser using DataLab