Uses x,y coordinates to produce distance-based spatial weight matrices useful for spatial econometric regressions. The user is asked to input x and y coordinates, as well as a lower and upper bound threshold for the neighborhood.
The code is adapted from a previous version by Shawn Bucholtz of the USDA. A correction is made to set the (i,i) th elements (the diagonals) equal to zero.
Unlike other similar programs, this one can be used on very large datasets.
If you re-download the file it has now been updated with normbig inside it, so it should work. Check out my other files for alternate types of SWM files. Let me know if you have any questions!
Vania, sorry about that. Ill update the file to have that nested inside. In the meantime, here it is http://www.mathworks.com/matlabcentral/fileexchange/49545-normbig-sw-
Hi, I am trying to run this file but I am having a problem with this line SW=sparse(normbig(SW)) It seems that normbig is not a recognized function and I am trying to find it but without success. Can anybody help me, please?
Updated to include normbig file
Updated to include other required programs.
Some minor updates, should make code run better.