etc.genND: Generate the Null Distribution of the Threshold Classifier.

Description Usage Arguments Value Examples

Description

The function offers an algorithmic aproach to generating the null distribution of the etc classifier under the null hypothesis that the distributions of the positive and the negative class are identical.

Usage

1
etc.genND(n0, n1, c0, c1, pi0)

Arguments

n0

an integer indicating the number of negative instances in the sample.

n1

an integer indicating the number of positive instances in the sample.

c0

the cost of misclassifying a negative instance.

c1

the cost of misclassifying a positive instance.

pi0

a real number between 0 and 1 indicating the percentage of negative instances in the population.

Value

a list containing three components:

val

a vector with the number of possible values than etc can take.

pos.perm

the number of possible permutations for the given number of positives and negatives.

fav.perm

a vector with the number of favorable permutations for every value in val.

Examples

1
etc.genND(25, 27, 1, 3, 0.5)

SchroederFabian/CVOC documentation built on May 9, 2019, 1:18 p.m.