obs2bin: internal function obs2bin

View source: R/reliabilityCategories.R

obs2binR Documentation

internal function obs2bin

Description

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

Usage

obs2bin(obs, n.events)

Arguments

obs

2D-matrix of observations, dimensions = (time, npoints)

n.events

number of categories (3 for terciles)

Value

bincat: list with two elements: bin: 3D-array of binary (0/1) observations, dimensions = (n.events, time, npoints) cat: 2D-matrix with the observed category, dimensions = (time, npoints)

Author(s)

R. Manzanas \& M.Iturbide


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