Learn R Programming

SpatGC

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)

Installation

You can install the stable version from CRAN.

install.packages('SpatGC', dependencies = TRUE)

You can install the development version from Github

install.packages("remotes")

remotes::install_github("mahsanst/SpatGC")

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, https://cran.r-project.org/package=SpatGC.

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 = {https://cran.r-project.org/package=SpatGC} }

License

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

Copy Link

Version

Install

install.packages('SpatGC')

Monthly Downloads

104

Version

0.1.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Mahsa Nadifar

Last Published

April 25th, 2024

Functions in SpatGC (0.1.0)

rGCgeo

Generate Data from GC Spatial Regression Model with Geospatial Dependency
spatICAR

Generate Spatial Random Fields from ICAR Models
NBlat

Fit Negative Binomial Spatial Model
Poislat

Fit Poisson Spatial Model
GC

Gamma-Count (GC) Distribution
spatGEO

Generate Spatial Random Fields from Matern Covariance Model
spatCAR

Generate Spatial Random Fields from CAR Models
rGClat

Generate Data from GC Spatial Regression Model with Lattice Spatial Effect
rAdj

Generate a Random Adjacency Matrix
GClat

Fit ICAR Spatial Gamma-Count Model