The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

R-CMD-check CRAN_Status_Badge metacran downloads Project Status: Active – The project has reached a stable, usable state and is being actively developed.

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")

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.