Getting started¶
This section takes a new user from installation to a defensible first analysis. The goal is not merely to make a model run; it is to establish a correct data contract, neighbourhood definition, validation plan, and interpretation workflow.
Quick installation¶
pyGWRx supports Python 3.11–3.14 and is available from PyPI:
See the installation guide for isolated environments, optional extras, version pinning, and source-development setup.
- Installation — PyPI installation, Python versions, optional extras, isolated environments, and verification.
- Quick start — a complete GWR fit, diagnostics, prediction, and export workflow.
- Core concepts — local weighting, kernels, bandwidths, hat matrices, inference, and validation.
- Data and inputs — array shapes, DataFrames, coordinates, time, classes, exposure, and GeoDataFrames.
- Choosing a model — a question-driven decision framework across all 19 models.
Recommended first analysis¶
- Fit a transparent global baseline.
- Fit standard GWR with an explicitly documented kernel and bandwidth strategy.
- Check residuals, influence, local uncertainty, and local collinearity.
- Use spatially appropriate validation.
- Add one specialized mechanism at a time—multiscale, robust, temporal, similarity, regularization, or regimes.
- Report what changed and why the extra complexity is justified.
Warning
A successful .fit() call is not evidence that a local model is scientifically appropriate. Local models can make noise look like spatial structure when bandwidths, variables, or validation are poorly chosen.