Skip to content
Prev 11311 / 29559 Next

Spatial Lag and Error Model

I have read the documentation, and have tried both the LU and MC
methods.  I continue to get a similar error.  With a subset of the data
and a simplified model, then it will execute the command.  In my case, I
am using both linear and quadratic terms for some independent variables
to capture curvature in the marginal effects.  These quadratic terms do
enter strongly significantly in the linear model, but seem to cause
problems for errorsarlm() and lagsarlm(), particularly when the full
sample is used.  

Thanks again for the comments.  

John.

-----Original Message-----
From: Roger Bivand [mailto:Roger.Bivand at nhh.no] 
Sent: Saturday, March 26, 2011 4:03 AM
To: Janmaat, John
Cc: r-sig-geo at r-project.org
Subject: RE: [R-sig-Geo] Spatial Lag and Error Model
On Fri, 25 Mar 2011, Janmaat, John wrote:

            
one
See ?errorrsarlm, method= argument. You should not expect to be able to 
use dense matrix methods with as many observations. For k nearest 
neighbours, I suggest LU for an exact result, perhaps MC for an 
approximation.
Ditto.
Ditto - ?lagsarlm
Ditto.

You may also see singularities because your RHS variables appear to be 
close to colinear.
Both of these come when inverting the asymmetric covariance matrix of
the 
variables, read about why this happens on the function help pages - it
is 
described in details, and may also concern the scaling of your
variables.
Ditto.
Read the function help pages fully before you use the functions?

Roger
post
when
be
the
am
function