Quantile Regression For Longitudinal Data
Quantile Regression For Longitudinal Data
Roger Koenker
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 1/9
Classical Linear Fixed/Random Effects Model
yij = x>
ij β + αi + uij j = 1, ...mi , i = 1, ..., n,
or
y = Xβ + Zα + u.
The matrix Z represents an incidence matrix that identifies the n distinct
individuals in the sample. If u and α are independent Gaussian vectors
with u ∼ N(0, R) and α ∼ N(0, Q). Observing that v = Zα + u has
covariance matrix Evv> = R + ZQZ> , we can immediately deduce that
the minimum variance unbiased estimator of β is,
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 2/9
A Penalty Interpretation of β̂
Proposition. β̂ solves min(α,β) ky − Xβ − Zαk2R−1 + kαk2Q−1 , where
kxk2A = x> Ax.
Proof.
Differentiating we obtain the normal equations,
Suppose that the conditional quantile functions of the response of the jth
observation on the ith individual yij takes the form:
In this formulation the α’s have a pure location shift effect on the
conditional quantiles of the response. The effects of the covariates, xij are
permitted to depend upon the quantile, τ, of interest, but the α’s do not.
To estimate the model for several quantiles simultaneously, we propose
solving,
Xq X n Xmi
min wk ρτk (yij − αi − x>
ij β(τk ))
(α,β)
k=1 j=1 i=1
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 4/9
Penalized Quantile Regression with Fixed Effects
25
20
i=1
15
i=2
yit
i=3
10
5
0
0 2 4 6 8
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 5/9
Penalized Quantile Regression with Fixed Effects
X
q X
n X
mi X
n
min wk ρτk (yij − αi − x>
ij β(τk )) + λ |αi |.
(α,β)
k=1 j=1 i=1 i=1
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 6/9
Shrinkage of the Fixed Effects
8 10
8
6
6
4
4
2
α
α
2
0
−2 0
−4
0 1 2 3 4 5 0 1 2 3 4 5
λ λ
Shrinkage of the fixed effect parameter estimates, α̂i . The left panel illustrates an
example of the `1 shrinkage effect. The right panel illustrates an example of the `2
shrinkage effect.
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 7/9
Dynamic Panel Models and IV Estimation
In “short” panels estimation suffers from the same bias problems as seen
in least squares estimators Nickel (1981) Hsiao and Anderson (1981);
using the IV estimation approach of Chernozhukov and Hansen (2004) this
bias can be reduced.
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 8/9
Correlated Random Effects
Abrevaya and Dahl (JBES, 2008) adapt the Chamberlain (1982) correlated
random effects model and estimate a model of birthweight like that of
Koenker and Hallock (2001).
The R package rqpd implements both this method and the penalized fixed
effect approach. Available from R-Forge with the command:
install.packages("rqpd", repos="http://R-Forge.R-project.org")
This is a challenging, but very important, problem and hopefully there will
be new and better approaches in the near future.
Roger Koenker (CEMMAP & UIUC) Quantile Regression for Longitudinal Data LSE: 17.5.2010 9/9