# NOT RUN {
require(spdep)
data(boston)
y <- boston.c[, "CMEDV" ]
x <- boston.c[,c("CRIM","ZN","INDUS", "CHAS", "NOX","RM", "AGE",
"DIS" ,"RAD", "TAX", "PTRATIO", "B", "LSTAT")]
coords <- boston.c[,c("LAT","LON")]
weig <- weigen(coords)
res <- lslm(y=y,x=x,weig=weig)
## res <- lslm(y=y,x=x,weig=weig, boot=TRUE)
res
# }
Run the code above in your browser using DataLab