Description Usage Format See Also Examples
A dataset of apartments in the municipality of Athens for 2017. Point location of the properties is given together with their main characteristics and the distance to the closest metro/train station.
1 |
An sf object of 1000 points with the following 6 variables.
An unique identifier for each property.
The size of the property (unit: square meters)
The asking price (unit: euros)
The asking price per squre meter (unit: euroes/square meter).
Age of property in 2017 (unit: years).
The distance to closest train/metro station (unit: meters).
1 2 3 4 5 6 7 8 9 10 11 12 | library(sf)
library(spdep)
data(properties)
summary(properties$prpsqm)
pr.nb.800 <- dnearneigh(properties,0,800)
pr.listw <- nb2listw(pr.nb.800)
moran.test(properties$prpsqm, pr.listw)
moran.plot(properties$prpsqm, pr.listw, xlab="Price/m^2", ylab= "Lagged")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.