Package: nproc 2.1.5

nproc: Neyman-Pearson (NP) Classification Algorithms and NP Receiver Operating Characteristic (NP-ROC) Curves

In many binary classification applications, such as disease diagnosis and spam detection, practitioners commonly face the need to limit type I error (i.e., the conditional probability of misclassifying a class 0 observation as class 1) so that it remains below a desired threshold. To address this need, the Neyman-Pearson (NP) classification paradigm is a natural choice; it minimizes type II error (i.e., the conditional probability of misclassifying a class 1 observation as class 0) while enforcing an upper bound, alpha, on the type I error. Although the NP paradigm has a century-long history in hypothesis testing, it has not been well recognized and implemented in classification schemes. Common practices that directly limit the empirical type I error to no more than alpha do not satisfy the type I error control objective because the resulting classifiers are still likely to have type I errors much larger than alpha. As a result, the NP paradigm has not been properly implemented for many classification scenarios in practice. In this work, we develop the first umbrella algorithm that implements the NP paradigm for all scoring-type classification methods, including popular methods such as logistic regression, support vector machines and random forests. Powered by this umbrella algorithm, we propose a novel graphical tool for NP classification methods: NP receiver operating characteristic (NP-ROC) bands, motivated by the popular receiver operating characteristic (ROC) curves. NP-ROC bands will help choose in a data adaptive way and compare different NP classifiers.

Authors:Yang Feng [aut, cre], Jessica Li [aut], Xin Tong [aut], Ye Tian [ctb]

nproc_2.1.5.tar.gz
nproc_2.1.5.zip(r-4.5)nproc_2.1.5.zip(r-4.4)nproc_2.1.5.zip(r-4.3)
nproc_2.1.5.tgz(r-4.4-any)nproc_2.1.5.tgz(r-4.3-any)
nproc_2.1.5.tar.gz(r-4.5-noble)nproc_2.1.5.tar.gz(r-4.4-noble)
nproc_2.1.5.tgz(r-4.4-emscripten)nproc_2.1.5.tgz(r-4.3-emscripten)
nproc.pdf |nproc.html
nproc/json (API)

# Install 'nproc' in R:
install.packages('nproc', repos = c('https://yangfengstat.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4 exports 0.36 score 25 dependencies 1 mentions 16 scripts 289 downloads

Last updated 5 years agofrom:79ae465ef7. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-winWARNINGSep 15 2024
R-4.5-linuxWARNINGSep 15 2024
R-4.4-winWARNINGSep 15 2024
R-4.4-macWARNINGSep 15 2024
R-4.3-winWARNINGSep 15 2024
R-4.3-macWARNINGSep 15 2024

Exports:comparenpcnprocrocCV

Dependencies:adabitopscaToolsclasscodetoolse1071foreachglmnetgplotsgtoolsiteratorsKernSmoothlatticeMASSMatrixnaivebayesproxyrandomForestRcppRcppEigenROCRrpartshapesurvivaltree

nproc demo

Rendered fromnproc-demo.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2018-02-13
Started: 2016-05-03