gwrr-package: Geographically weighted regression models with penalties and...

Description Details Author(s) References Examples

Description

Fits geographically weighted regression (GWR) models and has tools to diagnose collinearity in the GWR models. Also fits geographically weighted ridge regression (GWRR) and geographically weighted lasso (GWL) models.

Details

Package: gwrr
Type: Package
Version: 0.2-1
Date: 2013-06-11
License: GPL (>=2)
LazyLoad: yes

Author(s)

David Wheeler

Maintainer: David Wheeler <[email protected]>

References

Wheeler DC (2007) Diagnostic tools and a remedial method for collinearity in geographically weighted regression. Environment and Planning A, 39: 2464-2481.

Wheeler DC (2009) Simultaneous coefficient penalization and model selection in geographically weighted regression: The geographically weighted lasso. Environment and Planning A, 41: 722-742.

Examples

1
2
3
4
5
6
data(columbus)
locs <- cbind(columbus$x, columbus$y)
col.gwr <- gwr.est(crime ~ income + houseval, locs, columbus, "exp")
plot(col.gwr$beta[2,], col.gwr$beta[3,])
col.vdp <- gwr.vdp(crime ~ income + houseval, locs, columbus, col.gwr$phi, "exp")
hist(col.vdp$condition)

Example output

Loading required package: fields
Loading required package: spam
Loading required package: grid
Spam version 1.4-0 (2016-08-29) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps
Loading required package: lars
Loaded lars 1.2

[1] "Bandwidth:  21.07  RMSPE : 12.21"
[1] "Bandwidth:  15.87  RMSPE : 12.16"
[1] "Bandwidth:  11.97  RMSPE : 12.1"
[1] "Bandwidth:  9.051  RMSPE : 12.02"
[1] "Bandwidth:  6.858  RMSPE : 11.94"
[1] "Bandwidth:  5.214  RMSPE : 11.86"
[1] "Bandwidth:  3.98  RMSPE : 11.81"
[1] "Bandwidth:  3.055  RMSPE : 11.74"
[1] "Bandwidth:  2.361  RMSPE : 11.59"
[1] "Bandwidth:  0.8003  RMSPE : 11.68"
[1] "Bandwidth:  1.971  RMSPE : 11.41"
[1] "Bandwidth:  1.678  RMSPE : 11.24"
[1] "Bandwidth:  1.02  RMSPE : 11.19"
[1] "Bandwidth:  1.514  RMSPE : 11.14"
[1] "Bandwidth:  1.267  RMSPE : 11.07"

gwrr documentation built on May 2, 2019, 7:07 a.m.