Prediction Model Tools

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


R-CMD-check CRAN_Status_Badge metacrandownloads Project Status: Active – The project has reached a stable, usablestate and is being activelydeveloped.

Overview

predtools provides miscellaneous tools for developing and evaluating prediction models.

Table of Contents

Installation

You can install the released version of predtools from CRAN with:

install.packages("predtools")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("resplab/predtools")

Example

The function calibration_plot takes observed and predicted values from a prediction model and uses ggplot2 to produce a calibration plot:

library(predtools)
library(dplyr)
x <- rnorm(100, 10, 2)
y <- x + rnorm(100,0, 1)
data <- tibble(x,y)
calibration_plot(data, obs = "x", pred_1 = "y")

See vignettes for more advanced functionalities, including model-based ROC, intercept adjustment, calibration plot, and unit normal loss integral in two dimensions.

You can also access the vignettes from R:

browseVignettes("predtools")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("predtools")

0.0.3 by Amin Adibi, 3 years ago


https://github.com/resplab/predtools


Report a bug at https://github.com/resplab/predtools/issues


Browse source code at https://github.com/cran/predtools


Authors: Mohsen Sadatsafavi [aut, cph] , Amin Adibi [cre] , Abdollah Safari [aut] , Tae Yoon Lee [aut]


Documentation:   PDF Manual  


GPL license


Imports Rcpp, pROC, stats, graphics, RConics, ggplot2, dplyr, magrittr, mvtnorm

Suggests rmarkdown, knitr, spelling

Linking to Rcpp


Imported by EQUALPrognosis.

Suggested by cumulcalib.


See at CRAN