{"id":526,"date":"2014-02-20T16:52:56","date_gmt":"2014-02-20T21:52:56","guid":{"rendered":"http:\/\/homepages.uc.edu\/~yaozo\/wordpress\/?p=526"},"modified":"2014-02-20T16:52:56","modified_gmt":"2014-02-20T21:52:56","slug":"splm-packager-documentation-spatial-panel-models-estimation-and-testing","status":"publish","type":"post","link":"https:\/\/zhuoyao.net\/index.php\/2014\/02\/20\/splm-packager-documentation-spatial-panel-models-estimation-and-testing\/","title":{"rendered":"splm-package\tR Documentation Spatial panel models: estimation and testing"},"content":{"rendered":"<h3>Description<\/h3>\n<p>A comprehensive toolset for ML and GM estimation and diagnostic testing of econometric models for spatial panel data.<\/p>\n<h3>Details<\/h3>\n<table summary=\"Rd table\">\n<tbody>\n<tr>\n<td align=\"left\">Package:<\/td>\n<td align=\"left\">splm<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Type:<\/td>\n<td align=\"left\">Package<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Version:<\/td>\n<td align=\"left\">0.2-1<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">Date:<\/td>\n<td align=\"left\">2010-06-08<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">License:<\/td>\n<td align=\"left\">GPL<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">LazyLoad:<\/td>\n<td align=\"left\">yes<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Author(s)<\/h3>\n<p>Giovanni Millo and Gianfranco Piras<\/p>\n<p>Maintainer: Giovanni Millo &lt;giovanni.millo@generali.com&gt;<\/p>\n<h3>References<\/h3>\n<p>Anselin, L. and Le Gallo, J. and Jayet, H. (2008) Spatial Panel Econometrics,\u00a0<em>In<\/em>\u00a0Matyas, L. and Sevestre, P. (eds),\u00a0<em>The econometrics of Panel Data, Fundamentals and Recent Developments in Theory and Practice (3rd Edition)<\/em>, pages 624\u2013660. Springer-Verlag, Berlin Heidelberg.<\/p>\n<p>Baltagi, B.H., Song, S.H., Jung B. and Koh, W. (2007) Testing panel data regression models with spatial and serial error correlation.\u00a0<em>Journal of Econometrics<\/em>,\u00a0<b>140<\/b>, 5-51.<\/p>\n<p>Baltagi, B.H., Song, S.H. and Koh, W. (2003) Testing panel data regression models with spatial error correlation.\u00a0<em>Journal of Econometrics<\/em>,\u00a0<b>117<\/b>, 123\u2013150.<\/p>\n<p>Elhorst, J.P. (2003) Specification and estimation of spatial panel data models,\u00a0<em>International Regional Science Review<\/em>,\u00a0<b>26<\/b>, pages 244\u2013268.<\/p>\n<p>Elhorst, J.P. (2009) Spatial panel data models,\u00a0<em>In<\/em>\u00a0Fischer, M.M. and Getis, A. (eds),\u00a0<em>Handbook of Applied Spatial Analysis<\/em>Springer, Berlin.<\/p>\n<p>Kapoor, M., Kelejian, H.H. and Prucha, I.R. (2007) Panel data model with spatially correlated error components,\u00a0<em>Journal of Econometrics<\/em>,\u00a0<b>140<\/b>, pages 97\u2013130.<\/p>\n<p>Kelejian, H.H. and Prucha, I.R. (1999) A Generalized Moments Estimator for the Autoregressive Parameter in a Spatial Model,<em>International Economic Review<\/em>,\u00a0<b>40<\/b>, pages 509\u2013533.<\/p>\n<p>Kelejian, H.H. and Prucha, I.R. (1999) A Generalized Spatial Two Stage Least Square Procedure for Estimating a Spatial Autoregressive Model with Autoregressive Disturbances,\u00a0<em>Journal of Real Estate Finance and Economics<\/em>,\u00a0<b>17<\/b>, pages 99\u2013121.<\/p>\n<p>Kelejian, H.H. and Prucha, I.R. (2004) Estimation of Simultaneous systems of spatially interrelated cross sectional equations,<em>Journal of Econometrics<\/em>,\u00a0<b>118<\/b>, pages 27\u201350.<\/p>\n<p>Millo, G., Piras, G. (2012) splm: Spatial Panel Data Models in R.\u00a0<em>Journal of Statistical Software<\/em>,\u00a0<b>47(1)<\/b>, 1\u201338. URL http:\/\/www.jstatsoft.org\/v47\/i01\/.<\/p>\n<h3>Examples<\/h3>\n<pre>data(Produc, package = \"Ecdat\") \ndata(usaww)\nProduc &lt;- Produc[Produc$year&lt;1975, ] \nfm &lt;- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp\nGM&lt;-spgm(log(gsp)~log(pcap)+log(pc)+log(emp) + unemp, data = Produc, listw = usaww, moments = \"fullweights\", spatial.error = TRUE)\nsummary(GM)\nrespaterr &lt;- spml(fm, data = Produc, listw = mat2listw(usaww), model=\"random\", spatial.error=\"b\")\nsummary(respaterr)<\/pre>\n<h3>Results<\/h3>\n<pre>&gt; summary(GM)\nSpatial panel fixed effects GM model<\/pre>\n<p>Call:<br \/>\nspgm(formula = log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,<br \/>\ndata = Produc, listw = usaww, spatial.error = TRUE, moments = &#8220;fullweights&#8221;)<\/p>\n<p>Residuals:<br \/>\nMin. 1st Qu. Median 3rd Qu. Max.<br \/>\n-0.08530 -0.00924 0.00147 0.01120 0.08710<\/p>\n<p>Estimated spatial coefficient, variance components and theta:<br \/>\nEstimate<br \/>\nrho 0.34000605<br \/>\nsigma^2_v 0.00042315<\/p>\n<p>Coefficients:<br \/>\nEstimate Std. Error t-value Pr(&gt;|t|)<br \/>\nlog(pcap) -0.0344344 0.0719388 -0.4787 0.6321781<br \/>\nlog(pc) 0.4180673 0.0802665 5.2085 1.904e-07 ***<br \/>\nlog(emp) 0.6842815 0.0524796 13.0390 &lt; 2.2e-16 ***<br \/>\nunemp -0.0083389 0.0024991 -3.3367 0.0008478 ***<br \/>\n&#8212;<br \/>\nSignif. codes: 0 ?**?0.001 ?*?0.01 ??0.05 ??0.1 ??1<\/p>\n<pre>&gt; summary(respaterr)\n\nSpatial panel random effects ML model<\/pre>\n<p>Call:<br \/>\nspreml(formula = formula, data = data, index = index, w = listw2mat(listw),<br \/>\nw2 = listw2mat(listw2), lag = lag, errors = errors, cl = cl)<\/p>\n<p>Residuals:<br \/>\nMin. 1st Qu. Median Mean 3rd Qu. Max.<br \/>\n-0.24100 -0.07060 -0.00489 -0.00004 0.06650 0.33400<\/p>\n<p>Error variance parameters:<br \/>\nEstimate Std. Error t-value Pr(&gt;|t|)<br \/>\nphi 25.94693 6.47599 4.0066 6.159e-05 ***<br \/>\nrho 0.59547 0.06517 9.1371 &lt; 2.2e-16 ***<\/p>\n<p>Coefficients:<br \/>\nEstimate Std. Error t-value Pr(&gt;|t|)<br \/>\n(Intercept) 1.6220800 0.2127473 7.6244 2.451e-14 ***<br \/>\nlog(pcap) 0.0382456 0.0512507 0.7462 0.45552<br \/>\nlog(pc) 0.3970840 0.0433498 9.1600 &lt; 2.2e-16 ***<br \/>\nlog(emp) 0.6271538 0.0395013 15.8768 &lt; 2.2e-16 ***<br \/>\nunemp -0.0066850 0.0026529 -2.5199 0.01174 *<br \/>\n&#8212;<br \/>\nSignif. codes: 0 ?**?0.001 ?*?0.01 ??0.05 ??0.1 ??1<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description A comprehensive toolset for ML and GM estimation and diagnostic testing of econometric models for spatial panel data. Details Package: splm Type: Package Version:&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-526","post","type-post","status-publish","format-standard","hentry","category-spatial-panel-modeling"],"_links":{"self":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":0,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}