Skip to content
Prev 11305 / 29559 Next

Spatial Lag and Error Model

Hello again,

Thanks for the suggestion of updating the packages.  That dealt with one
issue.  For the rest, here is some of the info you asked for.  For
errorsarlm and lagsarlm I get a memory allocation problem.
R version 2.12.1 (2010-12-16)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United
States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base


other attached packages:
 [1] RANN_2.1.2         pgirmess_1.5.1     spdep_0.5-29
coda_0.14-2        deldir_0.0-13      nlme_3.1-98        MASS_7.3-11
Matrix_0.999375-48
 [9] boot_1.2-43        spgwr_0.6-10       maptools_0.8-4
lattice_0.19-17    foreign_0.8-42     sp_0.9-79         

loaded via a namespace (and not attached):
[1] grid_2.12.1  tools_2.12.1

Here are the error messages when commands run for full sample:
Error: cannot allocate vector of size 922.5 Mb
Error: cannot allocate vector of size 922.5 Mb
Error: cannot allocate vector of size 922.5 Mb
Error: cannot allocate vector of size 922.5 Mb
If I run the same set of commands on a subset of the data, then the
command output is:
Error in solve.default(asyvar, tol = tol.solve) : 
  system is computationally singular: reciprocal condition number =
8.6909e-27
Error in solve.default(asyvar, tol = tol.solve) : 
  system is computationally singular: reciprocal condition number =
8.34845e-27
Error in solve.default(inf, tol = tol.solve) : 
  system is computationally singular: reciprocal condition number =
7.82721e-27
Error in solve.default(inf, tol = tol.solve) : 
  system is computationally singular: reciprocal condition number =
7.81985e-27
Suggestions?



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

            
You did not provide sessionInfo() output. If you update spdep, you'll
find 
that this issue (of poorly conditioned crossproduct matrices in the
stsls 
step) was addressed in December 2010, and the current release should
work.

The code and error messages from errorsarlm() and lagsarlm() will
probably 
also show other misunderstandings, but that can be addressed if you post

them.

Hope this helps,

Roger
zero
neighbour
a
This
zero
model
dropped.
I
data
each
the
use,
However,
is
spatial
precise
coefficients