R/huberquantile_if.R

Defines functions huberquantile_if

Documented in huberquantile_if

huberquantile_if <- function(x, y, p, a, b)
{
    (abs(as.numeric(x >= y) - p)) * (capping_function(t = x - y, a = a, b = b))
}

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.