The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Stem: Spatio-Temporal Expectation-Maximization Models

Estimation of hierarchical spatio-temporal models through the Expectation-Maximization (EM) algorithm within a likelihood-based framework, following Fasso and Cameletti (2010) <doi:10.1177/0037549709102150> and the heterogeneous-network model of Fasso, Cameletti and Nicolis (2007) <doi:10.1002/env.837>, with the EM machinery of McLachlan and Krishnan (2008, ISBN:9780470191613). Parameters are estimated by maximum likelihood via Kalman filtering and smoothing; standard errors and spatial prediction uncertainty are obtained by a spatio-temporal parametric bootstrap. The package also provides the spatially-clustered STEM (SC-STEM) models, an extension in which regression coefficients, variance components and latent dynamics vary across spatial regimes estimated from the data by maximizing a Potts-penalized likelihood, in the spirit of the spatially-clustered regression of Sugasawa and Murakami (2021) <doi:10.1016/j.spasta.2021.100525> and of the spatially-clustered spatial autoregressive models of Cerqueti, Maranzano and Mattera (2025) <doi:10.1007/s13253-025-00685-7>. SC-STEM comes with likelihood-based information criteria, a two-step rule based on the Bayesian information criterion for selecting the number of regimes and the spatial penalty, and a refit-with-clustering parametric bootstrap that propagates the uncertainty of the estimated partition into intervals and tests.

Version: 2.0.0
Depends: R (≥ 4.1.0)
Imports: geodist, MASS, parallel, spdep, stats
Suggests: knitr, mvtnorm, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-11-21
DOI: 10.32614/CRAN.package.Stem
Author: Michela Cameletti ORCID iD [aut, cph], Francesco Caccia [ctb, cph] (earlier contributions to the code and preparation of the povalley data), Paolo Maranzano ORCID iD [aut, cre, cph]
Maintainer: Paolo Maranzano <pmaranzano.ricercastatistica at gmail.com>
BugReports: https://github.com/PaoloMaranzano/Stem/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/PaoloMaranzano/Stem
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: Stem results

Documentation:

Reference manual: Stem.html , Stem.pdf
Vignettes: 2. Spatially-clustered STEM models (source, R code)
4. Computational notes (source, R code)
5. Numerical experiments on the estimation algorithms (source, R code)
3. Map of the package (source, R code)
1. Getting started with STEM models (source, R code)

Downloads:

Package source: Stem_2.0.0.tar.gz
Windows binaries: r-devel: Stem_2.0.0.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): Stem_2.0.0.tgz, r-oldrel (arm64): Stem_2.0.0.tgz, r-release (x86_64): Stem_2.0.0.tgz, r-oldrel (x86_64): Stem_2.0.0.tgz
Old sources: Stem archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=Stem to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.