# The QUANTSELECT Procedure

#### Observation Quantile Level

The observation quantile level of a valid observation, , is defined as , where denotes the cumulative distribution function (CDF) for the y’s underlying distribution conditional on . For the CDF that is continuous at y, the equation holds because the quantile function is inversely related to the CDF. Ideally, if for a unique and some quantile-regression optimal solution , then is a reasonable estimation for , written as . However, such a might not exist or is nonunique in practice. The following steps show how the QUANTSELECT procedure estimates the observation quantile level via quantile process regression:

1. Fit the quantile process regression model and label its quantile-level grid as follows:

2. Compute quantile predictions conditional on in the quantile-level grid: .

3. Sort ’s to avoid crossing, such that .

4. if , or if .

5. Otherwise, search index j such that . If such a j exists,

6. Otherwise, search j and k such that , and set . Here, define and .