Quantile regression: effects across the whole distribution

Does leverage hurt struggling firms more than profitable ones? Does financial inclusion help the poorest regions most? OLS gives one average effect. Quantile regression shows how effects change across the distribution.

2 min readReviewed 2026-11-25Stata · R
M

Made for: Master's dissertation student

Your data is ready. The model isn't cooperating.

Sound familiar?

  • The Hausman test says one thing and your supervisor says another
  • Stata or EViews throws errors you can't decode at 1 a.m.
  • You're not sure your results are even the right ones to report
  • The deadline is fixed, and your supervisor has 20 other students

We diagnose your model, run it with you, and explain every number so you can defend it.

Why quantile regression

OLS estimates the effect of X on the mean of Y. Quantile regression (Koenker & Bassett, 1978) estimates effects on conditional quantiles: the 10th percentile (low performers), the median, the 90th (high performers).

It is useful when:

  • you expect heterogeneous effects (policy matters more for the poor than the rich);
  • your outcome has outliers or skewness (the median is robust);
  • errors are heteroskedastic, which itself suggests effects differ across the distribution.

Step by step

  1. Estimate OLS as a benchmark.
  2. Estimate at several quantiles (e.g. 0.10, 0.25, 0.50, 0.75, 0.90) with bootstrapped standard errors.
  3. Plot coefficients against quantiles with confidence bands, alongside the OLS estimate.
  4. Test equality of coefficients across quantiles (e.g. q10 vs q90).
* Stata
qreg roa leverage size growth, quantile(.5)
sqreg roa leverage size growth, quantiles(.1 .25 .5 .75 .9) reps(500)
test [q10]leverage = [q90]leverage
* user-written plot: ssc install grqreg
library(quantreg)
qr <- rq(roa ~ leverage + size + growth, tau = c(.1,.25,.5,.75,.9), data = df)
summary(qr, se = "boot", R = 500)
plot(summary(qr))
anova(rq(roa ~ leverage + size + growth, tau = .1, data = df),
      rq(roa ~ leverage + size + growth, tau = .9, data = df))

Interpretation

A coefficient at τ = 0.10 is the effect of X on the 10th percentile of Y, conditional on the other regressors. It is not the effect for "the 10% poorest firms" estimated as a separate subsample.

Example: Leverage reduces ROA at all quantiles, but the effect is three times larger at the 10th percentile (β = −0.15) than at the 90th (β = −0.05). The difference is significant (F = 6.21, p = .01), suggesting debt is most harmful for poorly performing firms.

Panels and time series

  • Panel quantile regression with fixed effects: Canay (2011) two-step, Machado & Santos Silva (2019) MMQR (xtqreg in Stata, user-written), or Powell's estimator. Each makes different assumptions, so justify your choice.
  • Quantile ARDL / cross-quantilogram: used for asymmetric time-series relationships, e.g. oil and stock returns.

Common mistakes

  • Interpreting quantile effects as subgroup regressions.
  • Reporting only a few quantiles without the coefficient plot.
  • Using default analytical standard errors with heteroskedastic data instead of bootstrapping.
  • Adding unit dummies to qreg in short panels (incidental-parameters problem).

Frequently asked questions

Do I still need OLS?

Yes. Report OLS as the benchmark; the contrast with quantile estimates is often your main finding.

Which quantiles should I report?

0.10, 0.25, 0.50, 0.75 and 0.90 are conventional. Choose others if your research question focuses on the tails.