Spatial panel data models using Stata

A new command for estimating and forecasting spatial panel data models using Stata is now available: xsmle.

xsmle fits fixed or random effects spatial models for balanced panel data. See the mi prefix command in order to use xsmle in the unbalanced case. Consider the following general specification for the spatial panel data model:

yit=τyit−1+ρWyit+Xitβ+DZitθ+ai+γt+vit
vit=λEvit+uit

where uit is a normally distributed error term, W is the spatial matrix for the autoregressive component, D the spatial matrix for the spatially lagged independent variables, E the spatial matrix for the idiosyncratic error component. ai is the individual fixed or random effect and γtis the time effect. xsmle fits the following nested models:

i) The SAR model with lagged dependent variable ( θ=λ=0 )

yit=τyit−1+ρWyit+Xitβ+ai+γt+uit ,

where the standard SAR model is obtained by setting τ=0 .

ii) The SDM model with lagged dependent variable ( λ=0 )

yit=τyit−1+ρWyit+Xitβ+DZitθ+ai+γt+uit ,

where the standard SDM model is obtained by setting τ=0 . xsmle allows to use a different weighting matrix for the spatially lagged dependent variable ( W ) and the spatially lagged regressors ( D ) together with a different sets of explanatory ( Xit ) and spatially lagged regressors ( Zit ). The default is to use W=D and Xit=Zit .

iii) The SAC model ( θ=τ=0 )

yit=ρWyit+Xitβ+ai+γt+vit ,
vit=λEvit+uit ,

for which xsmle allows to use a different weighting matrix for the spatially lagged dependent variable ( W ) and the error term ( E ).

iv) The SEM model ( ρ=θ=τ=0 )

yit=Xitβ+ai+γt+vit ,
vit=λEvit+uit .

v) The GSPRE model ( ρ=θ=τ=0 )

yit=Xitβ+ai+vit ,
ai=ϕWai+μi ,
vit=λEvit+uit ,

where also the random effects have a spatial autoregressive form.

The command was written together with Andrea Piano Mortari and Gordon Hughes.

You may install it by typing

net install xsmle, all from(http://www.econometrics.it/stata)

in your Stata command bar.

HTH,
Federico

 

http://www.econometrics.it/?p=312