Learn R Programming

gwrr (version 0.2-2)

gwrr-package: Geographically weighted regression models with penalties and diagnostic tools

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.

Arguments

Details

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

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab