Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

check.func

check loss function


Description

Calculates the check loss function.

Usage

check.func(u, p)

Arguments

u

Value to be evaluated

p

Probability level [0,1]

Details

The check loss is calculated as ρ_{p} (u) = (abs(u) + (2*p-1)*u)/2.

Value

The check loss for value u and probability level p.

Note

This function is used within quantileScore.

Author(s)

Sabrina Bentzien

Examples

## The function is currently defined as
function (u, p) 
{
    rho <- (abs(u) + (2 * p - 1) * u) * 0.5
  }

verification

Weather Forecast Verification Utilities

v1.42
GPL (>= 2)
Authors
NCAR - Research Applications Laboratory
Initial release
2015-07-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.