Skip to content

nproc

2.1.5

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

0packages depend
2.6Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Yang FengFirst published 2016-02-1313 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 2.6 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
92%
Return-value docs
100%
References docs
44%

Downloads

2.6K
CRAN downloads in the past year
Rank #15,437 · ~7/day · ~219/mo
Daily download trend is not available in this view yet.
17330 days
68090 days
2.6K1 year
Compare downloads with other packages →
Also on94 r2u18 autocran

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (11)
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Contributors (1)
Contributor · added in 2.1.5
Listed in earlier versions (2)
no longer listed · 2.0.8 to 2.1.4
no longer listed · 2.1.4
Package Timeline

13 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 2.1.5Latest
    2020-01-13 · current release · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2.1.4
    2018-11-16 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.1.1
    2018-02-13 · diff ↗
  • 2.0.9
    2017-09-18 · diff ↗
  • 2.0.8
    2017-09-01 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 2.0.6
    2017-03-04 · diff ↗
Show 9 earlier events
  • 2.0.4
    2017-01-13 · diff ↗
  • 2.0.1
    2016-09-27 · diff ↗
  • 1.2
    2016-08-11 · diff ↗
  • 1.1
    2016-06-19 · diff ↗
  • 0.5
    2016-05-08 · diff ↗
  • 0.4
    2016-05-03 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 0.1
    2016-02-13
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2016-02-13
Total releases
13 / 10 yrs
License
GPL-2 OSI
Download size
1.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nproc")
Feng, Y., Li, J., Tian, Y., & Tong, X. (2020). nproc: Neyman-Pearson (NP) Classification Algorithms and NP Receiver Operating Characteristic (NP-ROC) Curves (Version 2.1.5) [Computer software]. https://doi.org/10.32614/CRAN.package.nproc

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for nproc version 2.1.5 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy