reliability_diagramm function

reliability_diagramm

reliability_diagramm

Reliability curves allow checking if the predicted probabilities of a

reliability_diagramm(actual, predicted, bins = 10, plot_rd = TRUE)

Arguments

  • actual: vector of observed class labels (0/1)
  • predicted: vector of uncalibrated predictions
  • bins: number of bins in the reliability diagram, Default: 10
  • plot_rd: should the reliability diagram be plotted, Default: TRUE

Returns

a list object containing the following elements - calibration_error:

  • discrimination_error:

  • rd_breaks:

  • histogram_plot:

  • diagram_plot:

  • mean_pred_per_bin:

  • accuracy_per_bin:

  • freq_per_bin:

  • sign:

See Also

ggplot,stat_bin,aes,scale_fill_manual,theme,labs,geom_point,xlim,ylim,geom_abline,geom_line,geom_text,geom_label,coord_fixed

  • Maintainer: Dominik Heider
  • License: LGPL-3
  • Last published: 2019-08-19

Useful links