(experimental)

miscalibration_test(x, ...)

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

# S3 method for 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

forecastthe name of the prediction method.
miscalibrationthe miscalibration statistic (see summary.reliabilitydiag).
pvaluethe pvalue.