Skip to content
Prev 274 / 29559 Next

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

Dear Professor Roger Bivand:

    Yes, I was talking about the two SAR fitting functions. I just did a
very quick run on a dataset with 3437 observations (those are point data,
and I generate the listw object using dnearneigh() - not sure whether the
result is symmetric or asymmetric). However, I tried both "sparse" and
"SparseM" method on errorsarlm(), both failed to go through, the errors
given as follow:

    For "sparse" method:
    "Error in spwdet(sparseweights, rho = rho, debug = debug) : 
        Suspicious allocation of memory in sparse functions
         ...bailing out! Save workspace and quit R!"

    For "SparseM" method:
    "Error in .local(x, ...) : Increase tmpmax
     Error in det(chol(x)) : Unable to find the argument "x" in selecting
     a method for function "det" "

    By the way, I am still using R 2.0.0 and when I loaded the libraries,
I got warnings. I will keep trying and keep you posted as I progress.
Thanks.
On Mon, 13 Dec 2004, Roger Bivand wrote:

            
Sincerely,
    Danlin Yu

----------------------------------
Lecturer, Ph.D. Candidate
Department of Geography
University of Wisconsin, Milwaukee
Tel: (414)229-3943
Fax: (414)229-3981
Email: danlinyu at uwm.edu