summary.calibrationband {calibrationband} | R Documentation |
summarize calibration band object
Description
An object of class calibrationband
contains the calibration band
coordinates, the pairs of original observation and forecast values,
and the recalibrated forecasts obtained by isotonic regression.
The function summary.reliabilitydiag
calculates the areas of
miscalibration.
Usage
## S3 method for class 'calibrationband'
summary(object, ..., iso_test = FALSE, n = 3)
Arguments
object |
object of class |
... |
Further arguments to be passed to or from methods. |
iso_test |
with |
n |
number of rows in output table. |
Value
A 'summary.reliability'
object, which is also a
tibble (see tibble::tibble()
) with columns:
min_x | minimal x-coordinate of misscalibration segment (ordered by length). |
max_x | maximal x-coordinate of misscalibration segment (ordered by length). |
Examples
set.seed(123)
s=.8
n=10000
x <- sort(runif(n))
p <- function(x,s){p = 1/(1+((1/x*(1-x))^(s+1)));return(p)}
dat <- data.frame(pr=x, y=rbinom(n,1,p(x,s)))
cb <- calibration_bands(x=dat$pr, y=dat$y,alpha=0.05, method="round", digits =3)
summary(cb)
print(summary(cb), n=5)
[Package calibrationband version 0.2.1 Index]