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
From: R-sig-Geo <r-sig-geo-bounces at r-project.org> on behalf of Josiah Parry <josiah.parry at gmail.com>
Sent: 26 May 2023 20:14
To: Jose Funes
Cc: r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] Estimate impacts from a spgm - spatial panel regression model
Sent: 26 May 2023 20:14
To: Jose Funes
Cc: r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] Estimate impacts from a spgm - spatial panel regression model
Jose have you built the model that you want impacts for using the spatialreg package? Additionally, it would be great if you provided a reproducible example for folks to try and replicate the behavior you are experiencing. On Fri, May 26, 2023 at 12:26?PM Jose Funes <jefunes at gmail.com> wrote: > Hi, > I would like to estimate the impacts of a spatial lag model output. It used > to work, but it does not work anymore. I used to work fine with the impacts > function in the spdep package, but it seems the function does not work any > longer. The second option was to load the spatialreg library and use the > impacts function, but I get an error message "object type not recognized". > Please advise. > > Jose Funes > Economic geographer > DC Office of Planning > 1100 4th Street SW, 20024 > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo at r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo