is.compatible: Is compatible with the candidate_ranking

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

Author(s)

Li Qinglong <liqinglong0830@163.com>

Examples

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

StatMethRank documentation built on Jan. 15, 2017, 8:59 p.m.