Learn R Programming

rqPen (version 2.2.2)

check: Quantile check function

Description

Evaluates the check function for quantile tau at value x. Check function is the objective function defined in Koenker and Bassett (1978).

Usage

check(x, tau)

Arguments

x

Number to be evaluated.

tau

Number between 0 and 1 for quantile of interest.

Value

x*(tau-I(x < 0))

References

[1] Koenker, R. and Bassett, G. (1978). Regression Quantiles, Econometrica, 46, 33--50.

Examples

Run this code
# NOT RUN {
check(2,.5)
check(-2,.5)
check(2,.2)
check(2,.8)
# }

Run the code above in your browser using DataLab