Skip to contents

Overview

This package includes techniques from a particular branch of spatial statistics, termed geographically weighted (GW) models. GW models suit situations when data are not described well by some global model, but where there are spatial regions where a suitably localized calibration provides a better description.

From version 3.0, the goal of GWmodel is to provide more conscious and easier user interfaces and high-performance implementations by refactoring R functions and internal C++ code. And the package sf now is set as the default dependency to manipulate spatial data. We believe with the newly designed interfaces and underlying code, users will get fluent and highly consistent experiences.

Installation

Install from GitHub:

devtools::install_github("GWmodel-Lab/GWmodel3")

Getting started

Now the following models have been implemented in this package:

Please find vignettes for more information.

From version 3.0, GWmodel is based on a pure C++ library — libgwmodel. This library implements all models, and GWmodel just calls this package by translating inputs and outputs. Besides, GWmodel also provides some handy functions for the convenience of R users.

For the old version, please turn to the old repository.

Getting help

If you encounter a bug, please create an issue here. It would be better for us if a minimal reproducible example is also provided.