Skip to content
Prev 8540 / 29559 Next

Problem with moran.test function

On Thu, 17 Jun 2010, Michael Haenlein wrote:

            
No, it is definitely better to find out what is wrong with Network.txt, as 
the change made in April to sn2listw() - called by read.dat2listw() was to 
trap defective input objects. Please look at traceback() after the error. 
Do debug() on read.dat2listw, and summary() on wmat and sn. Are there 
locale issues in reading the text file, perhaps (decimal symbol?)?

This would feed downstream into the obviously wrong lagged values seen 
below. I'd be interested in access to the input file to strengthen 
defences against unusual weights, or weights seen by the system as 
unusual. I think that an errant final column is becoming a factor, then 
converted to numeric (with large n and many unique weights, their integer 
indices will become large). read.dat2listw() needs to check that there are 
3 columns, and that the first two are integer, and the third is numeric, I 
think. But we need to see why reading the file is failing.

Roger