Dear All,
I am working to create an inverse distance weights Matrix for some spatial analysis. First I use:
spmat idistance dW longitude latitude, id(_ID) dfunction(rhaversine) norm(row)
Then, I want to create a distance cutoff, using 1000 km limits. Therefore, I write:
spmat idistance dW1000 longitude latitude, id(_ID) dfunction(rhaversine) norm(row) vtruncated(1/1000)
What is not clear to me is why I get a warning saying "spatial-weighting matrix contains 37 islands"
Of course I do not have 37 islands in my dataset. Moreover, I noticed that if I reduce the cutoff, say 1/500 the number of "supposed" islands increases to 63. Differently, it reduces if I set 1/2000.
As far as I understood, if I use vtruncated option, I set the weights of neighbors of each spatial unit to zero if they lie 1000 or more
km from a given unit. Therefore, why I get the warning above, which does not appear when I do not set vtruncated?
Thanks,
Dario
I am working to create an inverse distance weights Matrix for some spatial analysis. First I use:
spmat idistance dW longitude latitude, id(_ID) dfunction(rhaversine) norm(row)
Then, I want to create a distance cutoff, using 1000 km limits. Therefore, I write:
spmat idistance dW1000 longitude latitude, id(_ID) dfunction(rhaversine) norm(row) vtruncated(1/1000)
What is not clear to me is why I get a warning saying "spatial-weighting matrix contains 37 islands"
Of course I do not have 37 islands in my dataset. Moreover, I noticed that if I reduce the cutoff, say 1/500 the number of "supposed" islands increases to 63. Differently, it reduces if I set 1/2000.
As far as I understood, if I use vtruncated option, I set the weights of neighbors of each spatial unit to zero if they lie 1000 or more
km from a given unit. Therefore, why I get the warning above, which does not appear when I do not set vtruncated?
Thanks,
Dario
Comment