powered by
Evaluates the check function for quantile tau at value x. Check function is the objective function defined in Koenker and Bassett (1978).
check(x, tau)
x*(tau-I(x < 0))
Number to be evaluated.
Number between 0 and 1 for quantile of interest.
Ben Sherwood
[1] Koenker, R. and Bassett, G. (1978). Regression Quantiles, Econometrica, 46, 33--50.
check(2,.5) check(-2,.5) check(2,.2) check(2,.8)
Run the code above in your browser using DataLab