Huber sandwich estimator in quantile regression

I need the description of Huber sandwich estimate method for quantile regression.

I found this "a Huber sandwich estimate using a local estimate of the sparsity function". Sparsity function looks like $s(\theta)=f(F^{-1}(\theta))^{-1}$, $F$ is a distribution of residuals and $f$ is a density function of $F$. So my question is what exactly means "local estimate of sparsity function":)

• At the moment this reads like a request to do homework. If that's not the case, perhaps a description of what level of explanation is needed and what sort of searching efforts you have already exerted would increase the probability people to engage with you.
– DWin
Dec 14 '13 at 17:24
• @Dwin thank you for your answer, but for me is still not clear what when is the difference between sparsity method (which is used when residuals are iid) and Huber sandwich method (when residuals are non-iid). Dec 15 '13 at 15:34
• I didn't mean to suggest that there were two different methods; only that there was a theoretic aspect being raised in the SAS docs and a computational aspect that was better addressed in Koenker's R documentation.
– DWin
Dec 15 '13 at 17:09
• What I am looking for is the difference between these to methods in theoretic way. So that's why I was asking for description of Huber sandwich method, because sparsity method looks quite clear, but I don't understand what exactly changes are made in Huber sandwich case that it is already possible to use non-iid residuals. But anyway, thanks;) Dec 15 '13 at 17:37
• As I understand it the creation of a Huber sandwich is simply a mechanism for estimating the sparsity function.
– DWin
Dec 15 '13 at 17:40

That appears to be from the SAS QUANTREG manual section: They then go on to call the sparsity function. the "reciprocal of the density function" (which is arguably a natural language version of the formula above but is more suggestive that a local sparsity would be something like 1/(r_1-r_2) where r-1 and r_2 are local density residuals rather than just a functional "inverse".) So a natural interpretation is that the (local) sparsity function is very similar to the average distance between nearby ordered residuals. In fact this formula for empiric estimate of s() appears immediately below that description:
> Hinv: inverse of the estimated Hessian matrix returned if cov=TRUE and

The flanking Hinv matrices are what give the name "sandwich" to the method. J is sandwiched between two Hinv's.