MENU

Fun & Interesting

Introduction to Spatial Lags for Spatial Analysis

Josiah Parry 7,618 lượt xem 2 years ago
Video Not Working? Fix It Now

This video goes over the intuition behind the fundamental of spatial analysis: the spatial lag. What it is, how it's calculated, and how to calculate it in R using the package sfdep.

GitHub: https://github.com/JosiahParry/youtube-tutorials/tree/main/spatial-lag

Resources:
- [Understanding neighbors] https://www.urban-informatics.org/tutorials/2021-05-07-spatial-autocorrelation-in-r/#understanding-neighbors
- note that this blog post uses a deprecated package but the points are still good!
- [Spatial weights GeoDa center](https://geodacenter.github.io/workbook/4d_weights_applications/lab4d.html#spatially-lagged-variables)

0:00 - intro
0:22 - formula
0:41 - breaking it down
3:15 - the lag visualized
4:12 - interpretation
5:00 - using sfdep (neighbors)
6:49 - spatial weights
7:29 - spatial lag
9:10 - with dplyr
9:38 - code exercise
12:48 - choropleth of crime
13:48 - spatial lag of crime
15:20 - distribution of the spatial lag
16:39 - cleaning it all up

Comment