Fotheringham, A.S., Brunsdon, C., and Charlton, M.E. (2002), Geographically Weighted Regression:
The Analysis of Spatially Varying Relationships, Chichester: Wiley.
Examples
###
data(EWHP)
head(ewhp)
houses.spdf <- SpatialPointsDataFrame(ewhp[, 1:2], ewhp)
####Get the border of England and Wales
data(EWOutline)
plot(ewoutline)
plot(houses.spdf, add = TRUE, pch = 16)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(GWmodel)
Loading required package: maptools
Loading required package: sp
Checking rgeos availability: TRUE
Loading required package: robustbase
Welcome to GWmodel version 1.2-5.
Note: The default kernel for all the functions have been set as bisquare from this release
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GWmodel/EWHP.Rd_%03d_medium.png", width=480, height=480)
> ### Name: EWHP
> ### Title: House price data set (DataFrame) in England and Wales
> ### Aliases: EWHP ewhp
> ### Keywords: data,house price
>
> ### ** Examples
>
> ###
> data(EWHP)
> head(ewhp)
Easting Northing PurPrice BldIntWr BldPostW Bld60s Bld70s Bld80s TypDetch
1 599500 142200 65000 0 0 0 0 1 0
2 575400 167200 45000 0 0 0 0 0 0
3 530300 177300 50000 1 0 0 0 0 0
4 524100 170300 105000 0 0 0 0 0 0
5 426900 514600 175000 0 0 0 0 1 1
6 508000 190400 250000 0 1 0 0 0 1
TypSemiD TypFlat FlrArea
1 1 0 78.94786
2 0 1 94.36591
3 0 0 41.33153
4 0 0 92.87983
5 0 0 200.52756
6 0 0 148.60773
> houses.spdf <- SpatialPointsDataFrame(ewhp[, 1:2], ewhp)
> ####Get the border of England and Wales
> data(EWOutline)
> plot(ewoutline)
> plot(houses.spdf, add = TRUE, pch = 16)
>
>
>
>
>
> dev.off()
null device
1
>