Hierarchical Spatial Autoregressive Model
Overview
A Hierarchical Spatial Autoregressive Model (HSAR), based on a Bayesian Markov Chain Monte Carlo (MCMC) algorithm (Dong and Harris (2014) doi:10.1111/gean.12049). The creation of this package was supported by the Economic and Social Research Council (ESRC) through the Applied Quantitative Methods Network: Phase II, grant number ES/K006460/1.
- Resolve the CRAN check issues for
HASRand resubmit it to CRAN.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 29%
- HSAR HTML
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 8
Stars over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/spatlyu/hsar on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-03-27 · The repository has a site deploy workflow
pkgdown site last built 2026-03-27
Dependencies
Installing HSAR adds 30 packages (19 with compiled code, 53 MB of source tarballs). Heaviest: sf 9.3 MB, TH.data 8.2 MB, data.table 5.7 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- insight through spatialreg → marginaleffectsfix by Nov 14
Code & Tests
Datasets
People & History
Previously maintained by Angelos Mimis (0.3.6 to 0.5.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-12-23
- 0.6.0Latest2024-12-23 · current release · diff ↗ ·
removed 8 exports
summary.mcmc_hsar, summary.mcmc_sar, summary.mcmc_hsar_rho_0, summary.mcmc_hsar_lambda_0, print.mcmc_hsar, print.mcmc_sar, print.mcmc_hsar_rho_0, print.mcmc_hsar_lambda_0 - RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- archivedRemoved from CRAN2022-01-22check problems were not corrected in time
- RR 4.1.0 released · 2021-05-18
- 0.5.12020-06-28 · diff ↗
- unarchivedReturned to CRAN2020-06-26
- 0.52020-06-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
- archivedRemoved from CRAN2020-02-19check problems were not corrected despite reminders
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
Show 6 earlier eventsHide 6 earlier events
Package metadata
- First published
- 2015-12-22
- Total releases
- 6 / 11 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 245 KB / 5 files
- Download size
- 315 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("HSAR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1111/gean.12049.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.