R/gpl1_sf.R

Defines functions gpl1_sf

Documented in gpl1_sf

gpl1_sf <- function(x, y, p, b)
{
    err <- x^b - y^b
    
    (p * pmax(-err, 0) + (1 - p) * pmax(err, 0))/(abs(b))
}

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.