R/expectile_if.R

Defines functions expectile_if

Documented in expectile_if

expectile_if <- function(x, y, p)
{
    2 * abs(as.numeric(x >= y) - p) * (x - y)
}

Try the scoringfunctions package in your browser

Any scripts or data that you put into this service are public.

scoringfunctions documentation built on Aug. 30, 2026, 5:07 p.m.