xsmle is a new user-written command for spatial analysis. We consider the quasi–maximum likelihood estimation of a wide set of both fixed- and random-effects spatial models for balanced panel data. xsmle allows users to handle unbalanced panels using its full compatibility with the mi suite of commands, use spatial weight matrices in the form of both Stata matrices and spmat objects, compute direct, indirect, and total marginal effects and related standard errors for linear (in variables) specifications, and exploit a wide range of postestimation features, including the panel-data case predictors of Kelejian and Prucha (2007, Regional Science and Urban Economics 37: 363–374). Moreover, xsmle allows the use of margins to compute total marginal effects in the presence of nonlinear specifications obtained using factor variables. In this article, we describe the command and all of its functionalities using simulated and real data.
AngristJ. D., and PischkeJ.-S.2009. Mostly Harmless Econometrics: An Empiricist's Companion.Princeton, NJ: Princeton University Press.
2.
BramoulléY., DjebbariH., and FortinB.2009. Identification of peer effects through social networks. Journal of Econometrics150: 41–55.
3.
BurnhamK. P., and AndersonD. R.2004. Multimodel inference: Understanding AIC and BIC in model selection. Sociological Methods and Research33: 261–304.
4.
DriscollJ. C., and KraayA. C.1998. Consistent covariance matrix estimation with spatially dependent panel data. Review of Economics and Statistics80: 549–560.
5.
DrukkerD. M., PengH., PruchaI. R., and RaciborskiR.2013. Creating and managing spatial-weighting matrices with the spmat command. Stata Journal13: 242–286.
6.
DrukkerD. M., PruchaI. R., and RaciborskiR.2013a. A command for estimating spatial-autoregressive models with spatial-autoregressive disturbances and additional endogenous variables. Stata Journal13: 287–301.
7.
DrukkerD. M., PruchaI. R., and RaciborskiR.2013b. Maximum likelihood and generalized spatial two-stage least-squares estimators for a spatial-autoregressive model with spatial-autoregressive disturbances. Stata Journal13: 221–241.
8.
ElhorstJ. P.2010a. Spatial panel data models. In Handbook of Applied Spatial Analysis: Software Tools, Methods and Applications, ed. FischerM. M., and GetisA., 377–408. Berlin: Springer.
9.
ElhorstJ. P.2010b. Applied spatial econometrics: Raising the bar. Spatial Economic Analysis5: 9–28.
10.
ElhorstJ. P.2014. Spatial Econometrics: From Cross-Sectional Data to Spatial Panels.Heidelberg: Springer.
11.
ElhorstJ. P., and FréretS.2009. Evidence of political yardstick competition in France using a two-regime spatial Durbin model with fixed effects. Journal of Regional Science49: 931–951.
12.
ElhorstP., PirasG., and ArbiaG.2010. Growth and convergence in a multiregional model with space-time dynamics. Geographical Analysis42: 338–355.
13.
HausmanJ. A.1978. Specification tests in econometrics. Econometrica46: 1251–1271.
14.
HoechleD.2007. Robust standard errors for panel regressions with cross-sectional dependence. Stata Journal7: 281–312.
15.
JeantyP. W.2010. spwmatrix: Stata module to generate, import, and export spatial weights. Statistical Software Components 457111, Department of Economics, Boston College. https://ideas.repec.org/c/boc/bocode/s457111.html.
16.
KapoorM., KelejianH. H., and PruchaI. R.2007. Panel data models with spatially correlated error components. Journal of Econometrics140: 97–130.
17.
KelejianH. H., and PruchaI. R.2007. The relative efficiencies of various predictors in spatial econometric models containing spatial lags. Regional Science and Urban Economics37: 363–374.
18.
KostovP.2009. A spatial quantile regression hedonic model of agricultural land prices. Spatial Economic Analysis4: 53–72.
19.
LeeL.-F., and YuJ.2010. Estimation of spatial autoregressive panel data models with fixed effects. Journal of Econometrics154: 165–185.
20.
LeSageJ., and PaceR. K.2009. Introduction to Spatial Econometrics.Boca Raton, FL: Chapman & Hall/CRC.
21.
MilloG., and PirasG.2012. splm: Spatial panel data models in R. Journal of Statistical Software47(1): 1–38.
22.
MosconeF., and KnappM.2005. Exploring the spatial pattern of mental health expenditure. Journal of Mental Health Policy and Economics8: 205–217.
23.
MosconeF., TosettiE., and VittadiniG.2012. Social interaction in patients’ hospital choice: Evidence from Italy. Journal of the Royal Statistical Society, Series A175: 453–472.
24.
OlléA. S.2003. Electoral accountability and tax mimicking: The effects of electoral margins, coalition government, and ideology. European Journal of Political Economy19: 685–713.
25.
OlléA. S.2006. Expenditure spillovers and fiscal interactions: Empirical evidence from local governments in Spain. Journal of Urban Economics59: 32–53.
26.
PisatiM.2001. sg162: Tools for spatial data analysis. Stata Technical Bulletin60: 21–37. Reprinted in Stata Technical Bulletin Reprints, vol. 10, pp. 277–298. College Station, tx: Stata Press.
27.
RevelliF.2005. On spatial public finance empirics. International Tax and Public Finance12: 475–492.
28.
RubinD. B.1987. Multiple Imputation for Nonresponse in Surveys.New York: Wiley.
29.
ToblerW. R.1970. A computer movie simulating urban growth in the Detroit region. Economic Geography46: 234–240.
30.
WhiteH.1982. Maximum likelihood estimation of misspecified models. Econometrica50: 1–25.
31.
YuJ., de JongR., and LeeL.-F.2008. Quasi-maximum likelihood estimators for spatial dynamic panel data with fixed effects when both n and T are large. Journal of Econometrics146: 118–134.