powered by
Calculates the check loss function.
check.func(u, p)
The check loss for value u and probability level p.
Value to be evaluated
Probability level [0,1]
Sabrina Bentzien
The check loss is calculated as \(\rho_{p} (u) = (abs(u) + (2*p-1)*u)/2\).
## The function is currently defined as function (u, p) { rho <- (abs(u) + (2 * p - 1) * u) * 0.5 }
Run the code above in your browser using DataLab