R Spatial Data 1: Read in SHP File
Here we use R and RStudio to read in a spatial data file (as a SHP file), read in a contiguity (GAL) file created in GeoDa, create the same queen contiguity matrix in R and check that the two are the same, and compute a Moran's I. Link to Data File: https://sites.google.com/a/burkeyacad... Link to Playlist of all Spatial Videos: • Spatial Econometrics (NEW 2017-2018) My Website: http://www.burkeyacademy.com/ Support me on Patreon! / burkeyacademy Buy me a cup of coffee on PayPal? http://paypal.me/BurkeyAcademy Talk to me on my SubReddit: / burkeyacademy Link to download R: https://cloud.r-project.org/ Link to Download RStudio: https://www.rstudio.com/products/rstu... Here are the commands we used: library(spdep) library(rgdal) NCVACO = readOGR(dsn = ".", layer = "NCVACO") queen.nb=read.gal("queen.gal", region.id=NCVACO$FIPS) summary(queen.nb) queen.R.nb=poly2nb(NCVACO, row.names=NCVACO$FIPS) #Rook would be rook.R.nb=poly2nb(NCVACO,queen=FALSE) summary(queen.R.nb) isTRUE(all.equal(queen.nb,queen.R.nb,check.attributes=FALSE)) #moran(variable, listw, no. regions, sum of weights) moran(NCVACO$SALESPC,nb2listw(queen.nb), length(NCVACO$SALESPC), Szero(nb2listw(queen.nb))) moran.test(NCVACO$SALESPC,nb2listw(queen.nb))

R Spatial Data 2: KNN from Longitude and Latitude

Spatial Data Mining I: Essentials of Cluster Analysis

QGIS Intro Video 1: Free GIS

Spatial Regressions in GeoDa

Why Aliens Would NEVER Invade Africa

GIS and R - Importing spatial data

Spatial Regession in R 1: The Four Simplest Models

If Prime Numbers Become Increasingly Rare, Then Why Do They Keep Showing Up In Pairs?

Spatial Statistics in R: An Introductory Tutorial with Examples

Ukraine JUST Pulled This Off… Russia Was HELPLESS

Rowan Atkinson's Brilliant Humor Leaves Celebrities in Tears!

Spatial Data in R

Why AI Agents are either the best or worst thing we’ve ever built

Using Spatial Statistics to do More: Simple Approaches

The French Do Not Care About Work

Making Spatial Weights: Part 2

Lesson 5: Spatial Data Analysis in R

Exploratory Spatial Data Analysis 1: Intro to GeoDa:

