Rudy,
One idea (maybe not simplest) would be to use the spatial adjacency matrix as it will return binary if touching or not and just multiply by alcohol units through the matrix and sum...then for n-order 'lag' effects you would take the first matrix and if value is 1 do the matirx on that (so there will be as many n-order matrices as number of neighbors for lag n-1) removing duplicates as you go as there should be a lot...etc...this is very generalized description obviously but, if you go back through the postings there was a thread about creating the Queens and Rook spatial adjacency matrix and that should get you started...1st order is easy...just code a loop and duplcate removval for n-order (complexity will increase fast but with only 304 it should be negligable)....hope this gets you jump started towards a faster solution...Dave


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Aniruddha Banerjee
Sent: Friday, June 16, 2006 6:39 PM
To: [email protected]
Subject: [Maptitude] calculating spatial lags sums...

Hi,

I have 304 block groups with # of alcohol outlets as a variable. Now I
want to calculate another variable that is a sum of itself and all its
immediate neighbors. Let's call it the first lag variable. Also is it
possible to calculate 2nd 3rd 4th etc lagged effects? What's the
fastest way to do this? Regards, Rudy B.

__._,_.___


SPONSORED LINKS
Geographic information systems Geography game Geography


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to