R-CMD-check CRAN_Status_Badge Downloads per month Total Downloads Licence

The R package SpatGC Provides a collection of functions for preparing data and fitting Bayesian count spatial regression models, with a specific focus on the Gamma-Count (GC) model. The GC model is well-suited for modeling dispersed count data, including under-dispersed or over-dispersed counts, or counts with equivalent dispersion, using Integrated Nested Laplace Approximations (INLA). The package includes functions for generating data from the GC model, as well as spatially correlated versions of the model. See Nadifar, Baghishani, Fallah (2023)


You can install the stable version from CRAN.

install.packages(‘SpatGC’, dependencies = TRUE)

You can install the development version from Github



To cite package SpatGC in publications use:

Nadifar, M., Baghishani, H. (2024) SpatGC: Bayesian Modeling of Spatail Count Data. R package version 0.1.0,

A BibTeX entry for LaTeX users is

@Manual{SpatGC, title = {SpatGC: Bayesian Modeling of Spatail Count Data}, author = {Mahsa Nadifar and Hossein Baghishani}, year = {2024}, note = {R package version 0.1.0}, url = {} }


This package is free and open-source software, licensed under GPL-3.