{
  "_id": "6a1eef7ab401979e73412bd0",
  "Package": "nproc",
  "Type": "Package",
  "Title": "Neyman-Pearson (NP) Classification Algorithms and NP Receiver\nOperating Characteristic (NP-ROC) Curves",
  "Version": "2.1.5",
  "Date": "2020-01-13",
  "Authors@R": "c(person(\"Yang\", \"Feng\", email = \"yangfengstat@gmail.com\",\nrole = c(\"aut\", \"cre\")),person(\"Jessica\", \"Li\",\nrole = c(\"aut\")),person(\"Xin\", \"Tong\",\nrole = c(\"aut\")),person(\"Ye\", \"Tian\", role=c(\"ctb\")))",
  "Description": "In many binary classification applications, such as\ndisease diagnosis and spam detection, practitioners commonly\nface the need to limit type I error (i.e., the conditional\nprobability of misclassifying a class 0 observation as class 1)\nso that it remains below a desired threshold. To address this\nneed, the Neyman-Pearson (NP) classification paradigm is a\nnatural choice; it minimizes type II error (i.e., the\nconditional probability of misclassifying a class 1 observation\nas class 0) while enforcing an upper bound, alpha, on the type\nI error. Although the NP paradigm has a century-long history in\nhypothesis testing, it has not been well recognized and\nimplemented in classification schemes. Common practices that\ndirectly limit the empirical type I error to no more than alpha\ndo not satisfy the type I error control objective because the\nresulting classifiers are still likely to have type I errors\nmuch larger than alpha. As a result, the NP paradigm has not\nbeen properly implemented for many classification scenarios in\npractice. In this work, we develop the first umbrella algorithm\nthat implements the NP paradigm for all scoring-type\nclassification methods, including popular methods such as\nlogistic regression, support vector machines and random\nforests. Powered by this umbrella algorithm, we propose a novel\ngraphical tool for NP classification methods: NP receiver\noperating characteristic (NP-ROC) bands, motivated by the\npopular receiver operating characteristic (ROC) curves. NP-ROC\nbands will help choose in a data adaptive way and compare\ndifferent NP classifiers.",
  "License": "GPL-2",
  "RoxygenNote": "6.1.0",
  "URL": "http://advances.sciencemag.org/content/4/2/eaao1659",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 08:36:02 UTC",
    "User": "root"
  },
  "Author": "Yang Feng [aut, cre], Jessica Li [aut], Xin Tong [aut], Ye Tian\n[ctb]",
  "Maintainer": "Yang Feng <yangfengstat@gmail.com>",
  "Repository": "https://yangfengstat.r-universe.dev",
  "Date/Publication": "2020-01-13 18:20:05 UTC",
  "RemoteUrl": "https://github.com/cran/nproc",
  "RemoteRef": "HEAD",
  "RemoteSha": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
  "MD5sum": "165ba54ab7ac3c398993316031cdac16",
  "_user": "yangfengstat",
  "_type": "src",
  "_file": "nproc_2.1.5.tar.gz",
  "_fileid": "d9d34802fdb2f9bc8ecc5cea5ffccf8fdf46f9298f9db68c81c3ca24549bcce6",
  "_filesize": 981067,
  "_sha256": "d9d34802fdb2f9bc8ecc5cea5ffccf8fdf46f9298f9db68c81c3ca24549bcce6",
  "_created": "2026-05-19T08:36:02.000Z",
  "_published": "2026-06-02T14:58:02.061Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79101351920,
      "time": 160,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7078713096"
    },
    {
      "job": 79101353599,
      "time": 129,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7078702780"
    },
    {
      "job": 79101353343,
      "time": 93,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7078690170"
    },
    {
      "job": 79101353779,
      "time": 139,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7078705471"
    },
    {
      "job": 79101352047,
      "time": 205,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7078658556"
    },
    {
      "job": 79101351543,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361413032"
    },
    {
      "job": 79101353331,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7078692921"
    },
    {
      "job": 79101352635,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7078694366"
    },
    {
      "job": 79101353159,
      "time": 152,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7078709986"
    }
  ],
  "_buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/nproc",
  "_commit": {
    "id": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
    "author": "Yang Feng <yangfengstat@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.1.5\n",
    "time": 1578939605
  },
  "_maintainer": {
    "name": "Yang Feng",
    "email": "yangfengstat@gmail.com",
    "login": "yangfengstat",
    "twitter": "@yangfengstat",
    "description": "Yang Feng is a professor of biostatistics in the School of Global Public Health at New York University.",
    "uuid": 17088366
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "e1071",
      "role": "Imports"
    },
    {
      "package": "randomForest",
      "role": "Imports"
    },
    {
      "package": "naivebayes",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "ada",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "ROCR",
      "role": "Imports"
    },
    {
      "package": "tree",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "yangfengstat",
      "count": 1,
      "uuid": 17088366
    }
  ],
  "_userbio": {
    "uuid": 17088366,
    "type": "user",
    "name": "Yang Feng",
    "description": "Yang Feng is a professor of biostatistics in the School of Global Public Health at New York University."
  },
  "_downloads": {
    "count": 171,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nproc"
  },
  "_mentions": 1,
  "_searchresults": 18,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/nproc.html",
    "manual.pdf"
  ],
  "_realowner": "yangfengstat",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1",
      "date": "2016-02-13"
    },
    {
      "version": "0.4",
      "date": "2016-05-03"
    },
    {
      "version": "0.5",
      "date": "2016-05-08"
    },
    {
      "version": "1.1",
      "date": "2016-06-19"
    },
    {
      "version": "1.2",
      "date": "2016-08-11"
    },
    {
      "version": "2.0.1",
      "date": "2016-09-27"
    },
    {
      "version": "2.0.4",
      "date": "2017-01-13"
    },
    {
      "version": "2.0.6",
      "date": "2017-03-04"
    },
    {
      "version": "2.0.8",
      "date": "2017-09-01"
    },
    {
      "version": "2.0.9",
      "date": "2017-09-18"
    },
    {
      "version": "2.1.1",
      "date": "2018-02-13"
    },
    {
      "version": "2.1.4",
      "date": "2018-11-16"
    },
    {
      "version": "2.1.5",
      "date": "2020-01-13"
    }
  ],
  "_exports": [
    "compare",
    "npc",
    "nproc",
    "rocCV"
  ],
  "_help": [
    {
      "page": "compare",
      "title": "Compare two NP classification methods at different type I error upper bounds.",
      "topics": [
        "compare"
      ]
    },
    {
      "page": "lines.nproc",
      "title": "Add NP-ROC curves to the current plot object.",
      "topics": [
        "lines.nproc"
      ]
    },
    {
      "page": "npc",
      "title": "Construct a Neyman-Pearson Classifier from a sample of class 0 and class 1.",
      "topics": [
        "npc"
      ]
    },
    {
      "page": "nproc",
      "title": "Calculate the Neyman-Pearson Receiver Operating Characteristics",
      "topics": [
        "nproc"
      ]
    },
    {
      "page": "plot.nproc",
      "title": "Plot the nproc band(s).",
      "topics": [
        "plot.nproc"
      ]
    },
    {
      "page": "predict.npc",
      "title": "Predicting the outcome of a set of new observations using the fitted npc object.",
      "topics": [
        "predict.npc"
      ]
    },
    {
      "page": "print.npc",
      "title": "Print the npc object.",
      "topics": [
        "print.npc"
      ]
    },
    {
      "page": "print.nproc",
      "title": "Print the nproc object.",
      "topics": [
        "print.nproc"
      ]
    },
    {
      "page": "rocCV",
      "title": "Calculate the Receiver Operating Characteristics with Cross-validation or Subsampling",
      "topics": [
        "rocCV"
      ]
    }
  ],
  "_rundeps": [
    "ada",
    "bitops",
    "caTools",
    "class",
    "codetools",
    "e1071",
    "foreach",
    "glmnet",
    "gplots",
    "gtools",
    "iterators",
    "KernSmooth",
    "lattice",
    "MASS",
    "Matrix",
    "naivebayes",
    "proxy",
    "randomForest",
    "Rcpp",
    "RcppEigen",
    "ROCR",
    "rpart",
    "shape",
    "survival",
    "tree"
  ],
  "_vignettes": [
    {
      "source": "nproc-demo.Rmd",
      "filename": "nproc-demo.html",
      "title": "nproc demo",
      "engine": "knitr::rmarkdown",
      "headings": [
        "title: \"A demonstration of the nproc package\"author: \"Yang Feng, Jingyi Jessica Li and Xin Tong\"date: \"r Sys.Date()\"output: rmarkdown::html_vignettevignette: >%\\VignetteIndexEntry",
        "Introduction",
        "Installation and Package Loading",
        "Neyman-Pearson Classifier",
        "Neyman-Pearson Receiver Operator Characteristic (NP-ROC) Band"
      ],
      "created": "2016-05-03 08:20:45",
      "modified": "2018-02-13 14:42:28",
      "commits": 8
    }
  ],
  "_score": 2.255272505103306,
  "_indexed": true,
  "_nocasepkg": "nproc",
  "_universes": [
    "yangfengstat"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.5",
      "date": "2026-05-19T08:38:28.000Z",
      "distro": "noble",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "fe7044129f66821d05ed26101682e7cbb114fb356d912a0664700c447234b6c7",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.5",
      "date": "2026-05-19T08:38:00.000Z",
      "distro": "noble",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "66d6e7f2dd973ab3a1c1bd86e78b9aa72853799d878c40e3b66eb98af0fe6406",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.5",
      "date": "2026-05-19T08:37:32.000Z",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "d490c2cd4716ae85e0ebc270a86d790c522751a68a2b02420831053c43239c47",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.5",
      "date": "2026-05-19T08:38:05.000Z",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "1bbc5fa8ebf7cb1cd675996038e0536a6cd503bafe77eef36244c6fb2e70bfa0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.5",
      "date": "2026-05-19T08:37:23.000Z",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "b57a767750007ad18c5e3b842a8bf50d52da7848c6b61f6e3078c9cae4f54c00",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.5",
      "date": "2026-05-19T08:37:29.000Z",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "e55a42c7439032c8059c28ec85181fb395b93a8c072159c6610fce22ae880e9f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.5",
      "date": "2026-05-19T08:38:13.000Z",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "d513c27536046807d13ed1949ef212ff7e6720f4771f808cafd3d32c90d8c8f8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.5",
      "date": "2026-06-02T14:57:37.000Z",
      "commit": "79ae465ef7b47e6ddd557c8e15dd603cfbd3fd6f",
      "fileid": "f0d8d0842b9ce76cf67ebda83b6b7be72fd92d9069bf9df7b4694f98b30ac63b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yangfengstat/actions/runs/26085803587"
    }
  ]
}