is_sig: Check if the candidates should be proposed

Description Usage Arguments Value Examples

View source: R/rlib_roc_pr.R

Description

Given the scores of the candidates and a threshold to apply along with method to propose, e.g. 'gt' means propose if score is greater than the threshold and 'lt' means propose if score is less than the threshold. It handle 'tie', when tie = TRUE, the candidate with score equals to threshold will be proposed

Usage

1
is_sig(score, threshold, method, tie = T)

Arguments

score

the scores of candidates

threshold

threshold to propose a signal

method

method = 'gt' to propose score greater than threshold; method = 'lt' to propose score less than threshold

tie

if propose the candidates which have scores equal to threshold (default TRUE)

Value

a binary vector of the same length as the input score vector indicating if the corresponding score entry is proposed

Examples

1
is_sig(score = 1:10, threshold = 3, method = 'gt', tie = TRUE)

liangyy/silver-standard-performance documentation built on Dec. 5, 2019, 8:53 a.m.