Skip to content
Prev 29235 / 29559 Next

Estimate impacts from a spgm - spatial panel regression model

I think the example is using the splm package to fit a GMM model. It is now some years since spdep was split, with model fitting functions and methods moving to spatialreg. The latter has also been updated several times since then, so knowledge of versions of R and packages is essential, in addition to a reproducible example. Specifically, https://github.com/r-spatial/spatialreg/pull/16 changed impacts methods for sphet GMM, and other changes in impacts methods may have occurred: https://github.com/r-spatial/spatialreg/commits/main/R/impacts.R gives full details. Provide a fully reproducible example, best with built-in data, or raise an issue if you can see how any changes have impacted splm in ways that the splm maintainer did not anticipate.

Hope this clarifies,

Roger

--
Roger Bivand
Emeritus Professor
Norwegian School of Economics
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway
Roger.Bivand at nhh.no
Message-ID: <OSWP279MB04711AFE395E04A33466CE14EE479@OSWP279MB0471.NORP279.PROD.OUTLOOK.COM>
In-Reply-To: <CAL3ufUJsuWNeXfXTUEdohGK7Gedc2my3honrHa8Dm0BNPqgr7g@mail.gmail.com>