Skip to content

APtools

Average Positive Predictive Values (AP) for Binary Outcomes and Censored Event Times

v6.8.8 · Sep 20, 2018 · LGPL-3

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

6 NOTE
8 OK
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)
NOTE r-devel-linux-x86_64-debian-clang

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.
NOTE r-devel-linux-x86_64-debian-clang

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’
NOTE r-devel-linux-x86_64-debian-gcc

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.
NOTE r-devel-linux-x86_64-debian-gcc

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’
NOTE r-devel-linux-x86_64-fedora-clang

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’
NOTE r-devel-linux-x86_64-fedora-gcc

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’
OK 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

*


            
NOTE r-patched-linux-x86_64

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’
NOTE r-release-linux-x86_64

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’
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 8 OK · 6 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-devel-linux-x86_64-debian-clang

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
NOTE r-devel-linux-x86_64-debian-gcc

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
NOTE r-devel-linux-x86_64-fedora-clang

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’
NOTE r-devel-linux-x86_64-fedora-gcc

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’
NOTE r-patched-linux-x86_64

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’
NOTE r-release-linux-x86_64

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’

Dependency Network

Dependencies Reverse dependencies survival cmprsk APtools

Version History

new 6.8.8 Mar 10, 2026