Skip to main content

Panel Quantile Regression (FE-QR)

Panel Quantile (FE-QR) extends quantile regression to panel data with fixed effects by unit. It estimates effects at different quantiles while controlling for unobserved unit characteristics — combining the strengths of FE and quantile regression.

When to use

Use it when you have panel data and want heterogeneous effects across quantiles while removing individual effects (e.g. a policy's effect on firms at different productivity levels).


Model specification

Qτ(YitXit,αi)=Xitβ(τ)+αiQ_{\tau}(Y_{it} \mid X_{it}, \alpha_i) = X_{it} \beta(\tau) + \alpha_i

where αi\alpha_i is the unit fixed effect. Common methods: Koenker (penalized FE-QR), Canay (two-step), Machado–Santos Silva (MM-QR).


Running in EcoLab

  1. Modeling module → Quantile regression family → Panel Quantile.
  2. Declare entity/time, YY, XX, and a list of quantiles τ\tau.
  3. Run; read β(τ)\beta(\tau) by quantile; bootstrap SE; export the replication code.

Replication code

* --- Panel Quantile Regression (FE-QR) ---
* Requires: ssc install xtqreg
xtset id year

* Canay (2011) two-step FE quantile regression
xtqreg y x1 x2, i(id) quantile(0.5)

* Multiple quantiles
foreach q in 0.25 0.50 0.75 {
xtqreg y x1 x2, i(id) quantile(`q')
}

Limitations

  • FE-QR estimation is not unique (multiple approaches, results may differ).
  • Some methods need a large TT; computation is heavy.

Video tutorial

Video Tutorial: Running Panel Quantile Regression in EcoLab

See also