Learn R Programming

WLogit (version 2.1)

Thresholding: Thresholding on a vector

Description

This function provides the thresholding (correction) given a vector. It calls the function top or top_thresh in the same package, and the output is the vector after correction with the optimal threshold parameter.

Usage

Thresholding(X, y, coef, TOP)

Value

opt_top

The optimal threshold

auc

the log-likelihood for each grill of thresholding

Arguments

X

Design matrix of the logistic model considered.

y

Binary response

coef

Candidate vector to be corrected

TOP

The grill of thresholding

Author

Wencan Zhu, Celine Levy-Leduc, Nils Ternes