Generalized Spatial Autoregresive Models for Mean and Variance
Overview
Modeling spatial dependencies in dependent variables, extending traditional spatial regression approaches. It allows for the joint modeling of both the mean and the variance of the dependent variable, incorporating semiparametric effects in both models. Based on generalized additive models (GAM), the package enables the inclusion of non-parametric terms while maintaining the classical theoretical framework of spatial regression. Additionally, it implements the Generalized Spatial Autoregression (GSAR) model, which extends classical methods like logistic Spatial Autoregresive Models (SAR), probit Spatial Autoregresive Models (SAR), and Poisson Spatial Autoregresive Models (SAR), offering greater flexibility in modeling spatial dependencies and significantly improving computational efficiency and the statistical properties of the estimators. Related work includes: a) J.D. Toloza-Delgado, Melo O.O., Cruz N.A. (2024). "Joint spatial modeling of mean and non-homogeneous variance combining semiparametric SAR and GAMLSS models for hedonic prices". doi:10.1016/j.spasta.2024.100864. b) Cruz, N. A., Toloza-Delgado, J. D., Melo, O. O. (2024). "Generalized spatial autoregressive model". doi:10.48550/arXiv.2412.00945.
Install
Health
- OK13 OK2026-09-18
- WARNING12 OK, 1 WARNING2026-09-12
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 8
- Examples that run
- 33%2 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 25%
Downloads
Dependencies
Installing spatemR adds 40 packages (25 with compiled code, 69 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, TH.data 8.2 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- insight through sphet → spatialreg → marginaleffectsfix by Nov 14
Code & Tests
People & History
Package metadata
- First published
- 2025-04-03
- Total releases
- 5 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0
- Download size
- 16 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("spatemR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1016/j.spasta.2024.100864.
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.