library(rgdal)
library(spcomparison)
columbus <- readOGR(system.file("shapes/columbus.shp", package="spData")[1])
weights <- nb2listw(poly2nb(columbus))
formula <- CRIME ~ INC + HOVAL
elhorst(base = columbus,
modele = CRIME ~ INC + HOVAL,
matrice = weights,
alpha = 0.05)
lesage_pace(data = columbus, formula = formula,
listw = weights, alpha = 0.05, criterion = "AIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.