Skip to content
Prev 11313 / 29559 Next

Spatial Lag and Error Model

On Sat, 26 Mar 2011, Janmaat, John wrote:

            
You are still not providing verbatim commands and error messages; adding 
the output of traceback() after the error would also show more. Have you 
read LeSage & Pace (2009) on mixed numerical Hessians, and seen that the 
ML fitting functions have an argument called trs= which may be used to 
provide traces of the power series of W, generated by trW(), see ?trW to 
see how to do this, and choose the "MC" type. This may relieve the 
problem, but without seeing the complete command you are executing, it is 
very difficult to tell.

If the quadratic terms are of very large or very small numbers, you may 
prefer to rescale the linear to something more modest. You need to realise 
that computers carry out numerical operations on the data you have given - 
models that may look OK on paper will fall over when estimated for all 
kinds of numerical reasons. Did you consider using orthogonal polynomials 
from poly() instead of powers - this may be numerically more stable?

Roger