miscalibration_test {reliabilitydiag}R Documentation

Miscalibration Test

Description

(experimental)

Usage

miscalibration_test(x, ...)

## S3 method for class 'reliabilitydiag'
miscalibration_test(x, ...)

## S3 method for class 'numeric'
miscalibration_test(x, y, ...)

Arguments

x

an R object inheriting from 'reliabilitydiag' or a numeric vector of probability predictions taking values in [0, 1].

...

further arguments to be passed to or from methods.

y

a numeric vector of binary response values in {0, 1} to be predicted.

Value

returns a 'tibble' with entries

forecast the name of the prediction method.
miscalibration the miscalibration statistic (see summary.reliabilitydiag).
pvalue the pvalue.

[Package reliabilitydiag version 0.2.1 Index]