You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Patrick Walsh (2026). InvSWM_F(xcoord,ycoord,lower,upper,RowStdOpt) (https://www.mathworks.com/matlabcentral/fileexchange/27526-invswm_f-xcoord-ycoord-lower-upper-rowstdopt), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Inverse and determinant of square matrix
General Information
- Version 1.3.0.0 (8.28 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
