InvSWM_F(xcoord,yco​ord,lower,upper,Row​StdOpt)

Creates an inverse-distance SWM, from X and Y coords.Can be used on very large datasets
898 Downloads
Updated 5 Feb 2015

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Inverse and determinant of square matrix

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.3.0.0

Updated to include normbig file

1.2.0.0

Updated to include other required programs.

1.1.0.0

Some minor updates, should make code run better.

1.0.0.0