Skip to content

R encounters fatal error in errorsarlm - sdpep package

2 messages · Roger Bivand

#
On Tue, 1 Oct 2013, Philine Gaffron wrote:

            
I think that, unless you need the Hausman test from errorsarlm, just turn 
it off with errorsarlm(..., control=list(returnHcov=FALSE)); the ML fit is 
quite OK, it is only the Hausman test component that is giving the 
warnings for the spatial coefficient close to its limits, and when using 
other methods than "eigen". If you do need it and cannot use 
method="eigen", increase the order until the warning (it is a warning, not 
an error) goes away with errorsarlm(..., control=list(pWOrder=<big 
integer>)). I have had win-builder roll up a Windows binary of the 
development version with more details on the problem, on:

http://win-builder.r-project.org/5IVvaH0M3Qsj

See the examples for powerWeight, and look at the returned component for 
the warnining-displaying errorsarlm fit called $pWinternal showing how 
convergence failed; series needs to fall below tol for convergence.

As your n is not large, you can compare the "eigen" and "Matrix" methods 
to see how the Hausman test output diverges as the approximation to the 
term needed deteriorates.

The underlying problem that you have touched is (as in the sections in 
Bivand et al. 2013 on approximations) that using power series to generate 
the product of the inverse of the nxn (I - \rho W) matrix and an arbitrary 
vector also deteriotates when \rho is near its limits.

Thanks for the detailed results; I've deleted them in this reply to save 
space.

Roger

  
    
#
On Tue, 1 Oct 2013, Roger Bivand wrote:

            
Use rather:

http://win-builder.r-project.org/21E63UI6JzHH

as the first attempt was not completely though through.

Roger