tabScoresRef: Table of calibration scores with probabilistic references

View source: R/calibScores.R

tabScoresRefR Documentation

Table of calibration scores with probabilistic references

Description

Table of calibration scores with probabilistic references

Usage

tabScoresRef(
  E,
  u,
  X = NULL,
  nBin = NULL,
  intrv = NULL,
  nMC = 1000,
  dist = c("Normal", "Uniform", "Normp4", "Laplace", "T4"),
  rawUnc = FALSE,
  quant = FALSE
)

Arguments

E

(vector) errors

u

(vector) prediction uncertainties

X

(vector/matrix) input features / coordinates (default: 'NULL')

nBin

(integer) number of bins used for statistics (default: 'sqrt(length(E))'). Superseded by 'intrv$nbr' if present.

intrv

(list) intervals generated by 'genIntervals' (default: 'NULL')

nMC

(integer) sampling size (default: 1000)

dist

(string) model error distribution to generate the reference values. One of 'Normal' (default), 'Uniform', 'Normp4', 'Laplace' or 'T4'

rawUnc

(logical) if TRUE, output unformatted reference uncertainties

quant

(logical) if TRUE, return 95% confidence interval limits

Value

A table with two lines, three if rawUnc is TRUE, and two more if quant is TRUE.

Examples


  uE = sqrt(rchisq(1000, df = 4))  # Re-scale uncertainty
  E  = rnorm(uE, mean=0, sd=uE)    # Generate errors
  tabScoresRef(E, uE)



ppernot/ErrViewLib documentation built on June 1, 2024, 4:33 a.m.