predtools 0.0.3 Prediction Model Tools Reference Manual

R package predtools 0.0.3 provides functions for evaluating predictive models, including calibration plots and mROC analysis.


predtools 0.0.3 Prediction Model Tools Reference Manual - cover page
Brand
predtools
Category
Other software
Document type
Other
Language
English
Pages
12
File format
PDF
File size
105 KB
Published
30 November, 2026
Updated
30 November, 2026
MD5 checksum
1105F606AA1911610A793D05EC6E861F

About this manual

predtools is an R package (version 0.0.3) that provides additional functions for evaluating predictive models, including plotting calibration curves and model-based Receiver Operating Characteristic (mROC) analysis based on Sadatsafavi et al (2021). It is maintained by Amin Adibi and hosted on CRAN at https://github.com/resplab/predtools.

The package includes functions for mROC statistics, calibration plots, EVPI calculations, odds adjustment, and prediction summary statistics, along with sample datasets for model development and validation.

What's inside

  • calc_mROC_stats
  • calc_NB_moments
  • calibration_plot
  • dev_data
  • evpi_val
  • gusto
  • mAUC
  • mROC
  • mROC_analysis
  • mROC_inference

Specifications

Package version0.0.3
LicenseGPL
R dependencyR (>= 3.6)
Languageen-US
CompilationNeedsCompilation yes

Frequently asked questions

What does predtools provide?

It provides additional functions for evaluating predictive models, including plotting calibration curves and model-based Receiver Operating Characteristic (mROC) analysis based on Sadatsafavi et al (2021).

What does the mROC function return?

It returns an object of class mROC containing thresholds on predicted risks, false positive rates, and true positive rates.

What does the calibration_plot function return?

It returns a calibration plot (a ggplot object) and, if data_summary is set to TRUE, a dataset including summary statistics of the predicted and observed outcomes.

What does the odds_adjust function do?

It updates a prediction model for a binary outcome by multiplying a fixed odd-ratio to the predicted odds, returning a correction factor for a new target population.

Download PDF (105 KB)