Skip to content
Prev 275 / 29559 Next

Fitting SAR models in spdep (was: spatial 2SLS)

On Mon, 13 Dec 2004, Danlin Yu wrote:

            
How many links are there in the neighbour list? Distance neighbours are 
symmetric, but if points are densely placed, there may be parts of your 
study area with many neighbours. Use print.nb() to find out how many.
Yes, this is the memory bug. It does happen on most/all GCC compiled 
versions, but I've seen BSD versions that work - it depends on the memory 
allocation code, but it has not been possible to solve. I am planning to 
drop "sparse" before long, unless the memory bug is resolved.
This is the problem: tmpmax is defined in chol() for "matrix.csr" objects 
as only 10 times the number of rows. I think you have more neighbour links 
than 10*n, and that means I need to find a way of passing a better value 
through. Please let me know, this looks do-able.

Roger