Package: mgwrsar 1.3.2

Ghislain Geniaux

mgwrsar: GWR, Mixed GWR with Spatial Autocorrelation and Multiscale GWR/GTWR (Top-Down Scale Approaches)

Provides methods for Geographically Weighted Regression with spatial autocorrelation (Geniaux and Martinetti 2017) <doi:10.1016/j.regsciurbeco.2017.04.001>. Implements Multiscale Geographically Weighted Regression with Top-Down Scale approaches (Geniaux 2026) <doi:10.1007/s10109-025-00481-4>.

Authors:Ghislain Geniaux [aut, cre], Davide Martinetti [aut], César Martinez [aut]

mgwrsar_1.3.2.tar.gz
mgwrsar_1.3.2.tar.gz(r-4.7-arm64)mgwrsar_1.3.2.tar.gz(r-4.6-arm64)mgwrsar_1.3.2.tar.gz(r-4.7-x86_64)mgwrsar_1.3.2.tar.gz(r-4.6-x86_64)
mgwrsar_1.3.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mgwrsar/json (API)
NEWS

# Install 'mgwrsar' in R:
install.packages('mgwrsar', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • mydata - Mydata is a simulated data set of a mgwrsar model
  • mydatasf - Mydataf is a Simple Feature object with real estate data in south of France.

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

openblascppopenmp

4.60 score 9 stars 44 scripts 357 downloads 30 exports 154 dependencies

Last updated from:451be9bb9f. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK431
source / vignettesOK407
linux-release-x86_64OK418
wasm-releaseOK220

Exports:coeffind_TPgolden_search_2d_bandwidthgolden_search_bandwidthgwr_beta_pivotal_qrp_cppgwr_beta_univar_cppINST_Cint_premskernel_matWmake_unique_by_structuremgwr_beta_pivotal_qrp_mixed_cppMGWRSARmgwrsar_bootstrap_testmgwrsar_bootstrap_test_allmultiscale_gwrnormWPhWY_Cplot_effectpredictProj_CQRcpp2_Creord_Dreord_M_Rresidualssearch_bandwidthssimu_multiscaleSl_Csummarysummary_MatrixTDS_MGWR

Dependencies:askpassbase64encBHbrewbslibcachemcaretclassclassIntcliclockcodetoolscpp11crosstalkcurldata.tableDBIdiagramdigestdoParalleldplyre1071evaluatefarverfastmapfontawesomeforeachFormulafsfuturefuture.applygenericsgeojsonsfgeometriesggplot2globalsgluegowergridExtragtablehardhathighrhtmltoolshtmlwidgetshttpuvhttrinumipredisobanditeratorsjquerylibjsonifyjsonliteKernSmoothknitrlabelinglaterlatticelavalazyevalleafemleafletleaflet.providersleafpoplibcoinlifecyclelistenvlubridatemagrittrmapviewMASSMatrixmboostmemoisemgcvmimeModelMetricsmvtnormnabornlmennetnnlsnumDerivopensslotelparallellypartykitpillarpkgconfigplotlyplyrpngpROCprodlimprogressrpromisesproxypurrrquadprogR6rapidjsonrrappdirsrasterRColorBrewerRcppRcppArmadilloRcppEigenrecipesreshape2RhpcBLASctlrlangrmarkdownrpartRSpectras2S7sasssatellitescalesservrsfsfheadersshapeSKATSMUTspsparsevctrsSPAtestSQUAREMstabsstringistringrsurvivalsvglitesyssystemfontsterratextshapingtibbletidyrtidyselecttimechangetimeDatetinytextzdbunitsutf8uuidvctrsviridisLitewithrwkxfunyaml

Estimating GWR and Mixed GWR Models with mgwrsar package: An Introduction with House Price Data

Rendered fromIntro_french_data.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-01-21
Started: 2026-01-21

GWR and MGWR with Space-Time Kernels

Rendered fromGWR-with-Space-Time-Kernels.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-01-21
Started: 2026-01-21

GWR and Mixed GWR with spatial autocorrelation

Rendered fromGWR-and-Mixed-GWR-with-spatial-autocorrelation.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-01-21
Started: 2026-01-21

Multiscale GWR using top down scale approaches

Rendered fromMultiscale-GWR-using-top-down-scale-approach.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-03-03
Started: 2026-01-21

Speeding up GWR like models with mgwrsar package using Target Points, rough gaussian kernel and parallelisation

Rendered fromSpeeding_up_GWR_like_models.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-01-21
Started: 2026-01-21

Readme and manuals

Help Manual

Help pageTopics
atds_gwr Top-Down Scaling approach of GWRatds_gwr
coef for mgwrsar modelcoef,mgwrsar-method
Search of a suitable set of target points. find_TP is a wrapper function that identifies a set of target points based on spatial smoothed OLS residuals.find_TP
fitted for mgwrsar modelfitted,mgwrsar-method
Optimization of 2D Bandwidths (Spatial and Temporal) using Golden Section Searchgolden_search_2d_bandwidth
Golden search bandwidth (deprecated)golden_search_bandwidth
kernel_matW A function that returns a sparse weight matrix based computed with a specified kernel (gauss,bisq,tcub,epane,rectangle,triangle) considering coordinates provides in S and a given bandwidth. If NN<nrow(S) only NN firts neighbours are considered. If Type!='GD' then S should have additional columns and several kernels and bandwidths should be be specified by the user.kernel_matW
Ensure Uniqueness of Coordinates or Values in 1D, 2D, or 3D Structuresmake_unique_by_structure
Estimation of linear and local linear model with spatial autocorrelation model (mgwrsar).MGWRSAR
A bootstrap test for Betas for mgwrsar class model.mgwrsar_bootstrap_test
A bootstrap test for testing nullity of all Betas for mgwrsar class model,mgwrsar_bootstrap_test_all
Class of mgwrsar Model.mgwrsar-class
Multiscale Geographically Weighted Regression (MGWR)multiscale_gwr
mydata is a simulated data set of a mgwrsar modelmydata
mydataf is a Simple Feature object with real estate data in south of France.mydatasf
Row Normalization of Sparse MatrixnormW
plot_effect plot_effect is a function that plots the effect of a variable X_k with spatially varying coefficient, i.e X_k * Beta_k(u_i,v_i) for comparing the magnitude of effects of between variables.plot_effect
Plot method for mgwrsar modelplot,mgwrsar,missing-method plot.mgwrsar
predict method for mgwrsar modelpredict,mgwrsar-method
reord_Dreord_D
reord_Mreord_M_R
residuals for mgwrsar modelresiduals,mgwrsar-method
Bandwidth Selection via Multi-round Grid Search based on AICcsearch_bandwidths
Simulate Data Generating Processes (DGP) for Multiscale GWRsimu_multiscale
Summary of a Sparse Matrixsummary_Matrix
summary for mgwrsar modelsummary,mgwrsar-method
Top-Down Scale (TDS) and Adaptive Top-Down Scale (ATDS) Estimation for MGWRTDS_MGWR