R/expectile_sf.R

Defines functions expectile_sf

Documented in expectile_sf

expectile_sf <- function(x, y, p)
{
    err <- x - y

    p * (pmin(err, 0))^2 + (1 - p) * (pmax(err, 0))^2
}

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.