Learn R Programming

BinaryReplicates (version 1.0.0)

classify_with_scores: Classification based on a thresholding of the scores

Description

Classification based on a thresholding of the scores

Usage

classify_with_scores(scores, vL, vU)

Value

A numeric vector of the classification (where 0.5 = inconclusive)

Arguments

scores

Numeric vector of the scores, computed with average_scoring, median_scoring, MAP_scoring or bayesian_scoring

vL

The lower threshold

vU

The upper threshold

Details

Each decision \(\hat{t}_i\) is taken according to the following rule: $$ \hat{t}_i = \begin{cases} 0 & \text{if } y_i < v_L,\\ 1/2 & \text{if } v_L \leq y_i \leq v_U,\\ 1 & \text{if } y_i > v_U, \end{cases} $$ where \(y_i\) is the score for individual \(i\).