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/youtub...
Resources:
[Understanding neighbors] https://www.urbaninformatics.org/tut...
note that this blog post uses a deprecated package but the points are still good!
[Spatial weights GeoDa center](https://geodacenter.github.io/workboo...)
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