Learn R Programming

StatMethRank (version 1.3)

is.compatible: Is compatible with the candidate_ranking

Description

This function judges whether the complete rangkings are compatible with an incomplete ranking.

Usage

is.compatible(complete_ranking, candidate_ranking)

Arguments

complete_ranking
a matrix or a vector, each column is a complete ranking.
candidate_ranking
a vector, using NA to stand for the missing ranks.

Value

a vector of TRUEs and FALSEs

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