(Double) Generalized Linear Models for Spatio-Temporal Data
Overview
Fit spatio-temporal models within a (double) generalized linear modelling framework. The package includes functions for estimation, simulation and inference.
New Features
- Added the argument
constto thevgamma()family function. It is used in the transformation of past observations when the log-link is used: past observations are now transformed aslog(y + const)instead oflog(y). - Added the argument
dispersion_constantto thedglmstarma.control()andglmstarma_sim.control()functions. Its value is passed to theconstargument ofvgamma()when the log-link is used for the dispersion model indglmstarma().
Minor Improvements
- The log-likelihood of the
QuasiBinomialfamily is now more robust against numerical issues. - Removed redundant checks for
NAand infinite values in thetsargument of theglmstarma()anddglmstarma()functions. - Removed unused C++ methods that were left over from a preliminary version of the package.
- Added
withrto theSuggestsfield in theDESCRIPTIONfile; it is now used in thetest-data.Rtest.
Bug Fixes
- Fixed a bug that prevented a dispersion model with an identity link from being fitted.
- Fixed a bug in the
variance()anddev.resids()functions of thevbinomial()andvquasibinomial()family functions. - Fixed a bug in the
dev.resids()function of thevbinomial()andvquasibinomial()family functions that caused problems when observed values were on the boundary of the support.
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
- Fixed a bug in the
variance()function of thevnormal()family function, which now returns the correct dimensions whenignore_dispersion = TRUEandmuis not a matrix. - The default dispersion parameter for
vquasibinomial()is now correctly set to1instead of0(not allowed) if the user does not specify a value and it must be estimated. - Fixed a bug in the
vnegative.binomial()family that did not allow zero values in the dispersion argument. For zero-values in the dispersion, the Negative Binomial distribution reduces to a Poisson distribution. - Fixed a bug in the
variance_funof theInversGaussfamily inC++. - Changed the observation transformation for
vpoisson("sqrt"),vquasipoisson("sqrt"), andvnegative.binomial("sqrt")tosqrt(x), assqrt(x + 3/8) * 2was causing problems. - Fixed a bug in the
link_trafo()andderivative_link_trafo()functions of theSoftClippingBinomialandSoftClippingQuasiBinomialfamily functions inC++, which caused problems when different values ofnwere used across locations. - Fixed a bug in
dglmstarma.control()whereparameter_init_dispersionwas not checked. - Fixed a bug in
predict.dglmstarma()that ignored the specified copula for prediction type"sample". - Fixed bugs in
glmstarma_predict()anddglmstarma_predict()that always caused warnings when time-varying covariates were included in the model. - Fixed a bug in
predict.glmstarma()that prevented predictions for models with a homogeneous intercept. - Fixed a bug in
fitted.dglmstarma()that prevented initial time points from being removed whendrop_init = TRUE. - Fixed a bug that prevented residuals of a model from being scaled by the variance.
print.summary.glmstarma()andprint.summary.dglmstarma()can now handle empty models.delete_glmSTARMA_data()now gives correct messages when datasets do not exist in the cache.- The documentation of the
SSTdataset now lists the correct number of locations/grid points. - Removed an incorrect reference to a
vgarchfamily from thestfamilyhelp page.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-02
- NOTE11 OK, 1 NOTE2026-04-25
- OK11 OK2026-04-22
Show 4 earlier changesHide 4 earlier changes
- ERROR10 OK, 1 ERROR2026-04-18
- OK11 OK2026-04-16
- NOTE10 OK, 1 NOTE2026-03-28
- OK11 OK2026-03-10
Documentation
- Help pages
- 25includes a package overview page
- Examples that run
- 24%5 run in a plain check · 16 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 79%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 28%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Releases over time
Commits over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/stmaletz/glmstarma on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing glmSTARMA adds 13 packages (10 with compiled code, 12 MB of source tarballs). Heaviest: copula 3.5 MB, nloptr 2.1 MB, colorspace 2.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.1.0Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.02026-01-26
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-01-26
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.5.0
- Download size
- 137 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("glmSTARMA")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.48550/arxiv.2607.08276.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.