Movatterモバイル変換


[0]ホーム

URL:


R-CMD-checkCRAN_Status_Badgemetacran downloadsProject Status: Active – The project has reached a stable, usable state and is being actively developed.

Overview

predtools provides miscellaneous tools for developingand evaluating prediction models.

Table of Contents

Installation

You can install the released version of predtools fromCRAN with:

install.packages("predtools")

And the development version fromGitHub with:

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

Example

The functioncalibration_plot takes observed andpredicted values from a prediction model and uses ggplot2 to produce acalibration 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, includingmodel-basedROC,interceptadjustment,calibrationplot, andunitnormal loss integral in two dimensions.

You can also access the vignettes from R:

browseVignettes("predtools")

[8]ページ先頭

©2009-2025 Movatter.jp