Skip to content
Prev 27364 / 29559 Next

Error in lag.listw(listw2, u) : Variable contains non-finite values - panel spatial model using splm

On Mon, 10 Jun 2019, Marco Mello via R-sig-Geo wrote:

            
Please post plain text, not HTML, easier to copy and paste into an R 
session.
This is not a reproducible example. Such an example is needed unless you 
can run traceback() and debug() yourself to solve the problem, but since 
you have posted, I assume you prefer that someone else runs debug() - and 
someone will then need a reproducible example, preferably with an adapted 
standard dataset (add NAs to Produc?).

I seem to recall that zero.policy= was not always passed through in some 
model fitting functions, possibly in splm. If so, set the option with 
spatialreg::set.ZeroPolicyOption(TRUE) and/or 
spdep::set.ZeroPolicyOption(TRUE)
to avoid that issue if it is present and biting. Of course, had I had a 
reproducible example, I could have checked and given clearer advice.
Nabble is only an archive, the real link is:

https://stat.ethz.ch/pipermail/r-sig-geo/2015-March/022428.html

The posting also gave no reproducible example, so nobody had anything to 
work on.

Hope this helps,

Roger