R/lqquantile_sf.R

Defines functions lqquantile_sf

Documented in lqquantile_sf

lqquantile_sf <- function(x, y, p, q)
{
    err <- x - y

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

Try the scoringfunctions package in your browser

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

scoringfunctions documentation built on April 4, 2025, 12:28 a.m.