plattCalib_evaluation: Function that plots the Platt Calibrations using plotly

View source: R/utils.R

plattCalib_evaluationR Documentation

Function that plots the Platt Calibrations using plotly

Description

Function that plots the Platt Calibrations using plotly

Usage

plattCalib_evaluation(
  r,
  p,
  p.orig,
  name,
  nbins = 10,
  annot_x = c(1, 1),
  annot_y = c(0.1, 0.3)
)

Arguments

r

binary real data

p

predicted probabilities

p.orig

the uncalibrated posterior probabilities

name

character string indicating the name of the calibrated variable

nbins

number of bins to create the plots

annot_x

integer indicating the x axis points in which the ECE and MCE values will be plotted

annot_y

integer indicating the y axis points in which the ECE and MCE values will be plotted

Value

list with Reliability diagram and histogram with calibrations and original predictions


MiMIR documentation built on May 29, 2024, 5:38 a.m.