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:

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

i) The SAR model with lagged dependent variable ()

,

where the standard SAR model is obtained by setting .

ii) The SDM model with lagged dependent variable ()

,

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

iii) The SAC model ()

,

,

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

iv) The SEM model ()

,

.

v) The GSPRE model ()

,

,

,

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

## Comments

Leave a comment