calculateReliability: Generate object needed by function reliability

View source: R/reliabilityCategories.R

calculateReliabilityR Documentation

Generate object needed by function reliability

Description

This function provides the object needed by "calculateReliability_v2.R" for calculating the reliability categories of a probabilistic prediction.

Usage

calculateReliability(
  obs,
  hindcast,
  n.events = n.events,
  n.bins = n.bins,
  n.boot = n.boot
)

Arguments

obs

m*n matrix of observations (m = years, n = locations)

hindcast

m*n*l matrix of predictions (m = members, n = years, l = locations)

n.events

(optional): number of categories considered (e.g. 3 for terciles). By default n.events = 3

n.bins

(optional): number of probability bins considered. By default n.bins = 10

n.boot

number of samples considered for bootstrapping. By default n.boot = 100

Value

List with the following elements: n.events = n.events nyear = number of years npoint = number of locations n = nyear*npoint hindcastprob = probability bins (center), per event (e.g. per tercile) obsfreq = observed frequency, per event (e.g. per tercile) hindcastfreq = predicted frequency, per event (e.g. per tercile) slope = slope of the reliability line, per event (e.g. per tercile) slope_boot = n.boot*n.events matrix, with all the boostrapped values for the slope of the reliability line

Author(s)

R. Manzanas \& M.Iturbide


SantanderMetGroup/visualizeR documentation built on Oct. 28, 2023, 6:11 a.m.