Re: [R-sig-Geo] error in errorsarlm

2010-08-12 Thread Roger Bivand
On Thu, 12 Aug 2010, elaine kuo wrote: Dear List, Eventually computing lagsarlm and errorsarlm become successful, Using the code below. (maybe knearneigh helps to solve some issue.) (ref. An Introduction to Spatial Regression Analysis in R, Luc Anselin, 2003) Or more recently Bivand et al

Re: [R-sig-Geo] error in errorsarlm

2010-08-12 Thread elaine kuo
Dear List, Eventually computing lagsarlm and errorsarlm become successful, Using the code below. (maybe knearneigh helps to solve some issue.) (ref. An Introduction to Spatial Regression Analysis in R, Luc Anselin, 2003) Elaine code rm(list=ls()) datam <-read.csv("c:/migration/Mig_ra

Re: [R-sig-Geo] error in errorsarlm

2010-08-01 Thread Roger Bivand
On Sun, 1 Aug 2010, Nikhil Kaza wrote: example(errorsarlm) Right! Or any other available dataset that mirrors the application case, which seems to be ecological, but crucially has point or cell support in decimal degrees with very large differences in distances between observations. You ar

Re: [R-sig-Geo] error in errorsarlm

2010-08-01 Thread Nikhil Kaza
example(errorsarlm) Nikhil Kaza Asst. Professor, City and Regional Planning University of North Carolina nikhil.l...@gmail.com On Aug 1, 2010, at 7:57 AM, elaine kuo wrote: Dear Dr. Bivand and list Thank you for the patience. Only one question remains 2. great distance circle => longl

Re: [R-sig-Geo] error in errorsarlm

2010-08-01 Thread elaine kuo
Dear Dr. Bivand and list Thank you for the patience. Only one question remains >> >> 2. great distance circle >> >> => longlat = TRUE returns no valid observation ... >>similar error messages have been researched in the archived mail >>but no identical case found... >> Please kindly

Re: [R-sig-Geo] error in errorsarlm

2010-07-30 Thread Roger Bivand
On Fri, 23 Jul 2010, elaine kuo wrote: 1. change method to Matrix System calculation is specific, the condition is =5.14146e-17 (translated from Chinese) Warning messages: Warning not a problem, but the error suggests scaling problems in the covariance matrix of the coefficients. The

Re: [R-sig-Geo] error in errorsarlm

2010-07-23 Thread elaine kuo
> > 1. change method to Matrix >> >> >> System calculation is specific, the condition is =5.14146e-17 (translated >> from Chinese) >> >> Warning messages: >> > > Warning not a problem, but the error suggests scaling problems in the > covariance matrix of the coefficients. The X variables are

Re: [R-sig-Geo] error in errorsarlm

2010-07-20 Thread Roger Bivand
On Tue, 20 Jul 2010, elaine kuo wrote: Hello, Thanks for the always concerns. answering the previous questions first. 1. distance threshold But 9 what, metres, degrees? Should your code be: cbind(datam$lat,datam$lon), as the normal ordering is eastings then northings, not the opposite?

Re: [R-sig-Geo] error in errorsarlm

2010-07-20 Thread elaine kuo
Hello, Thanks for the always concerns. answering the previous questions first. >> 1. distance threshold >> > > But 9 what, metres, degrees? Should your code be: > cbind(datam$lat,datam$lon), as the normal ordering is eastings then > northings, not the opposite? => unit is degree, and the la

Re: [R-sig-Geo] error in errorsarlm

2010-07-17 Thread Roger Bivand
On Sat, 17 Jul 2010, elaine kuo wrote: Dear, Thank you for the help. 1. distance threshold It is 9. (Roger, you are right and sorry to confuse you) But 9 what, metres, degrees? Should your code be: cbind(datam$lat,datam$lon), as the normal ordering is eastings then northings, not the oppos

Re: [R-sig-Geo] error in errorsarlm

2010-07-16 Thread elaine kuo
Dear, Thank you for the help. 1. distance threshold It is 9. (Roger, you are right and sorry to confuse you) 9 is the cutting point for avoiding empty neighbour sets. (If the distance threshold is 8, there will be empty ones.) 2. dataset length(nb10)=4873. sum(card(nb10)=885478) 3. memory size

Re: [R-sig-Geo] error in errorsarlm

2010-07-16 Thread Roger Bivand
On Fri, 16 Jul 2010, elaine kuo wrote: Dear List, I encountered an error message when trying to use Chebyshev as method for SAR. Please kindly help and thanks. Beyond what Danlin said, I am very unsure where to start. Please provide adequate information about your input data, specifically th

Re: [R-sig-Geo] error in errorsarlm

2010-07-16 Thread Danlin Yu
Elaine: Based on the error message (cannot allocate vector of size 121.8 Mb), it is very possibly you have way too many cases in your data set. A potential solution would be randomly sample your dataset to get a representative sample set and run the spatial regression, or you can always try a

[R-sig-Geo] error in errorsarlm

2010-07-16 Thread elaine kuo
Dear List, I encountered an error message when trying to use Chebyshev as method for SAR. Please kindly help and thanks. package spdep was updated on 07162010 system: windows vista home 32-bit R version 2.10.0 (20091026) Elaine Code > library(ncf) > library(spdep) > > # Define coordinates, neig