The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
The asymmetric Laplace distribution (ALD) is a convenient working likelihood for quantile regression: its mode-as-quantile and the check-loss connection make Bayesian computation straightforward (Yu and Moyeed, 2001). But it is misspecified for almost any real data-generating process, and a misspecified likelihood produces a posterior whose spread is the wrong asymptotic variance for the quantile-regression estimator. Naive credible intervals from such a posterior do not have correct frequentist coverage.
Yang, Wang and He (2016) restore validity with a multiplicative sandwich that re-uses the posterior covariance as the “bread”:
\[ V_\text{adj} = \Sigma_\text{post}\, G\, \Sigma_\text{post}, \]
where \(\Sigma_\text{post}\) is the posterior covariance of the fixed effects and \(G\) is the meat — the variance of the asymmetric-Laplace working-likelihood score. With score \(s_i = \sigma^{-1} x_i\,(\tau - \mathbf{1}\{r_i<0\})\) on the conditional residuals \(r_i\), the meat is \(G = \sigma^{-2}\sum_g\big(\sum_{i\in g} x_i\psi_i\big)\big(\cdot\big)'\) (cluster-robust on the grouping factor; the default), or its independence analogue.
Using \(\Sigma_\text{post}\) as the bread is what makes this correct for a mixed model: the posterior covariance already encodes the multilevel pooling, so the adjustment keeps the random-effect contribution to fixed-effect uncertainty while fixing the misspecified ALD scale. Under correct specification \(G \approx \Sigma_\text{post}^{-1}\) and the correction reduces to \(\approx \Sigma_\text{post}\).
The textbook fixed-effects sandwich \(\tau(1-\tau)D_1^{-1}D_0D_1^{-1}/n\)
(available internally as compute_ywh_sandwich() and
validated against quantreg) is computed on residuals with
the random effects removed, so it drops the between-cluster variance and
under-covers the mixed-model fixed effects. A
simulation bake-off (tools/bakeoff.R) confirmed this:
across homoscedastic and heteroscedastic two-level designs at several
quantiles, the Koenker form covered the fixed intercept at only
0.72–0.92, while the multiplicative form above covered at 0.95–1.00 — at
or just above nominal everywhere.
Yang, Y., Wang, H. J. and He, X. (2016). Posterior inference in Bayesian quantile regression with asymmetric Laplace likelihood. International Statistical Review, 84(3), 327-344.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.