R package predtools 0.0.3 provides functions for evaluating predictive models, including calibration plots and mROC analysis.
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.
| Package version | 0.0.3 |
|---|---|
| License | GPL |
| R dependency | R (>= 3.6) |
| Language | en-US |
| Compilation | NeedsCompilation yes |
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).
It returns an object of class mROC containing thresholds on predicted risks, false positive rates, and true positive rates.
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.
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.