You can specify the SPARSITY(IID) option in the MODEL
statement to assume that the distribution of
conditional on
follows the linear model
![\[ Y_ i = \mb{x}_ i^{\prime }\bbeta + \epsilon _ i \]](images/statug_hpqtr0030.png)
where
for
are iid in the distribution function F. Let
denote the density function of F. Further assume that
in a neighborhood of
. Then, under some mild conditions, Koenker and Bassett (1982) prove that the asymptotic distribution of the quantile regression estimates is
![\[ \sqrt {n}({\hat\bbeta }(\tau ) - \bbeta (\tau )) \rightarrow N(0, \omega ^2(\tau , F) \bOmega ^{-1}) \]](images/statug_hpqtr0034.png)
where
and
The reciprocal of the density function,
, is called the sparsity function.
Accordingly, the covariance matrix of
can be estimated as
![\[ \hat{\Sigma }(\tau )=\tau (1-\tau )\hat{s}^2(\tau )(\mb{X}ā\mb{X})^{-} \]](images/statug_hpqtr0039.png)
where
is the design matrix and
is an estimate of
. Under the iid assumption, the algorithm for computing
is as follows:
Fit a quantile regression model and compute the residuals. Each residual
can be viewed as an estimated realization of the corresponding error
.
Compute the quantile level bandwidth
. The HPQUANTSELECT procedure provides two bandwidth methods:
The Bofinger bandwidth is an optimizer of mean squared error for standard density estimation:
![\[ h_ n = n^{-1\slash 5} ( {4.5v^2(\tau )} )^{1\slash 5} \]](images/statug_hpqtr0045.png)
The Hall-Sheather bandwidth is based on Edgeworth expansions for studentized quantiles,
![\[ h_ n = n^{-1\slash 3} z_\alpha ^{2\slash 3} ( {1.5 v(\tau )} )^{1\slash 3} \]](images/statug_hpqtr0046.png)
satisfies
for the construction of
confidence intervals, where T is the cumulative distribution function for the t distribution and
is the residual degrees of freedom.
The quantity
![\[ v(\tau ) = {\frac{s(\tau )}{s^{(2)}(\tau )}} = {\frac{f^2}{2(f^{(1)} \slash f)^2 + [(f^{(1)} \slash f)^2 - f^{(2)}\slash f ] }} \]](images/statug_hpqtr0051.png)
is not sensitive to f and can be estimated by assuming f is Gaussian as
![\[ \hat{v}(\tau )={{\exp (-q^2)} \over 2\pi (q^2+1)} \]](images/statug_hpqtr0052.png)
where
.
Compute residual quantiles
and
as follows:
Set
and
.
Use the equation
![\[ {\hat F}^{-1}(t) = \left\{ \begin{array}{ll} r_{(1)} & {\mbox{if }} t\in [0, 1\slash 2n) \\ \lambda r_{(i+1)} + (1-\lambda ) r_{(i)} & {\mbox{if }} t\in [(i-0.5)\slash n, (i+0.5)\slash n) \\ r_{(n)} & {\mbox{if }} t\in [(2n-1), 1] \\ \end{array} \right. \]](images/statug_hpqtr0058.png)
where
is the ith smallest residual and
.
If
, find i that satisfies
and
. If such an i exists, reset
so that
. Also find j that satisfies
and
. If such a j exists, reset
so that
.
Estimate the sparsity function
as
![\[ \hat{s}(\tau )={{\hat{F}^{-1}(\tau _1)-\hat{F}^{-1}(\tau _0)} \over {\tau _1-\tau _0}} \]](images/statug_hpqtr0070.png)