View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Nearest Neighbor Spatial Weights Matrix

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 2.14 KB File ID: #36601 Version: 1.1

Nearest Neighbor Spatial Weights Matrix



08 May 2012 (Updated )

uses x,y coordinates to produce one of several types of nearest-neighbor spatial weight matrix.

| Watch this File

File Information

There are several other nearest neighbor SWM programs out there, but many of them require significantly more memory to run and do not work on large datasets. This file should work on large datasets (have tested on >100,000 obs). Furthermore, several options are available for the weights. The user can choose equal weights for each neighbor, or weights based on distance. This allows the NN specification more accuracy.

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
02 May 2013 1.1

Code made more efficient and a potential error corrected.

Contact us