APtools
Average Positive Predictive Values (AP) for Binary Outcomes and Censored Event Times
Description
We provide tools to estimate two prediction accuracy metrics, the average positive predictive values (AP) as well as the well-known AUC (the area under the receiver operator characteristic curve) for risk scores. The outcome of interest is either binary or censored event time. Note that for censored event time, our functions' estimates, the AP and the AUC, are time-dependent for pre-specified time interval(s). A function that compares the APs of two risk scores/markers is also included. Optional outputs include positive predictive values and true positive fractions at the specified marker cut-off values, and a plot of the time-dependent AP versus time (available for event time data).
Downloads
230
Last 30 days
13804th
591
Last 90 days
591
Last year
Trend: -36.3% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | NOTE |
| r-release-linux-x86_64 | NOTE |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (16 non-OK)
CRAN incoming feasibility
Maintainer: ‘Hengrui Cai <hengruicai@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Hengrui",
family = "Cai",
role = c("aut", "cre"),
email = "hengruicai@gmail.com"),
person(given = "Yan",
family = "Yuan",
role = "aut",
email = "yyuan@ualberta.ca"),
person(given = c("Qian", "Michelle"),
family = "Zhou",
role = "aut",
email = "qz70@msstate.edu"),
person(given = "Bingying",
family = "Li",
role = "aut",
email = "dorisli1120@gmail.com"))
as necessary.
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
CRAN incoming feasibility
Maintainer: ‘Hengrui Cai <hengruicai@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Hengrui",
family = "Cai",
role = c("aut", "cre"),
email = "hengruicai@gmail.com"),
person(given = "Yan",
family = "Yuan",
role = "aut",
email = "yyuan@ualberta.ca"),
person(given = c("Qian", "Michelle"),
family = "Zhou",
role = "aut",
email = "qz70@msstate.edu"),
person(given = "Bingying",
family = "Li",
role = "aut",
email = "dorisli1120@gmail.com"))
as necessary.
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
*
*
*
*
*
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
*
*
*
Check History
NOTE 8 OK · 6 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
CRAN incoming feasibility
Maintainer: ‘Hengrui Cai <hengruicai@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Hengrui",
family = "Cai",
role = c("aut", "cre"),
email = "hengruicai@gmail.com"),
person(given = "Yan",
family = "Yuan",
role = "aut",
email = "yyuan@ualberta.ca"),
person(given = c("Qian", "Mich
CRAN incoming feasibility
Maintainer: ‘Hengrui Cai <hengruicai@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Hengrui",
family = "Cai",
role = c("aut", "cre"),
email = "hengruicai@gmail.com"),
person(given = "Yan",
family = "Yuan",
role = "aut",
email = "yyuan@ualberta.ca"),
person(given = c("Qian", "Mich
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’
for non-standard things in the check directory
Found the following files/directories: ‘APBinary_PPV.csv’ ‘APBinary_TPF.csv’ ‘APBinary_ap_summary(method=perturbation,B=1500).csv’ ‘APBinary_auc_summary(method=perturbation,B=1500).csv’ ‘APSurv_PPV.csv’ ‘APSurv_TPF.csv’ ‘APSurv_ap_summary(method=bootstrap,B=500).csv’ ‘APSurv_auc_summary(method=bootstrap,B=500).csv’ ‘CompareAP_Binary_dap_summary(method=none).csv’ ‘CompareAP_Survival_dap_summary(method=bootstrap,B=500).csv’