[R] Why I get the massage of "Error in impacts.sarlm(s.lag, mat2listw(swmmat)) : Only row-standardised weights supported"

2015-07-26 Thread wenyueyang
Hi,all I am using the spdep-package to estimate the SAR(or called SLM) and SDM in R. I can get the estimation results of SAR and SDM with the command of "lagsarlm". But when I perform the "impact" command to calculate the direct effect, indirect effect and total effect, it feedback the following s

Re: [R] How to calculate the average direct effect, average total effect and average indirect effect for spatial regression models with spatial lag of dependent variable

2015-07-24 Thread wenyueyang
Dear Linus Holtermann, thank a lot for telling me the key to calculate the effects. I will try it. thank you for your help! best regards, Wenyue Yang -- View this message in context: http://r.789695.n4.nabble.com/How-to-calculate-the-average-direct-effect-average-total-effect-and-average-i

[R] How to calculate the average direct effect, average total effect and average indirect effect for spatial regression models with spatial lag of dependent variable

2015-07-23 Thread wenyueyang
Hi, I am using four spatial regression models (SAR, SEM, SAC and SDM) to evaluate the spillover effect of some factors. LeSage and Pace (2009) pointed out that when the spatial lag of the dependent variable is included in the model, parameter estimates lose their conventional interpretation as mar