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.
Thresholding(X, y, coef, TOP)
The optimal threshold
the log-likelihood for each grill of thresholding
Design matrix of the logistic model considered.
Binary response
Candidate vector to be corrected
The grill of thresholding
Wencan Zhu, Celine Levy-Leduc, Nils Ternes