Package: Stem
Type: Package
Title: Spatio-Temporal Expectation-Maximization Models
Version: 2.0.0
Authors@R: 
    c(
    person(
      given = "Michela",
      family = "Cameletti",
      role = c("aut", "cph"),
      email = "michela.cameletti@unibg.it",
      comment = c(ORCID = "0000-0002-6502-7779")
      ),
    person(
      given = "Francesco",
      family = "Caccia",
      role = c("ctb", "cph"),
      comment = "earlier contributions to the code and preparation of the povalley data"
      ),
    person(
      given = "Paolo",
      family = "Maranzano",
      role = c("aut", "cre", "cph"),
      email = "pmaranzano.ricercastatistica@gmail.com",
      comment = c(ORCID = "0000-0002-9228-2759")
      )
    )
Description: 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.
License: GPL (>= 2)
URL: https://github.com/PaoloMaranzano/Stem
BugReports: https://github.com/PaoloMaranzano/Stem/issues
Encoding: UTF-8
Language: en-US
Depends: R (>= 4.1.0)
Imports: geodist, MASS, parallel, spdep, stats
Suggests: knitr, mvtnorm, rmarkdown, testthat (>= 3.0.0)
VignetteBuilder: knitr
LazyData: true
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.0
NeedsCompilation: no
Packaged: 2026-11-02 20:55:30 UTC; paulm
Author: Michela Cameletti [aut, cph] (ORCID:
    <https://orcid.org/0000-0002-6502-7779>),
  Francesco Caccia [ctb, cph] (earlier contributions to the code and
    preparation of the povalley data),
  Paolo Maranzano [aut, cre, cph] (ORCID:
    <https://orcid.org/0000-0002-9228-2759>)
Maintainer: Paolo Maranzano <pmaranzano.ricercastatistica@gmail.com>
Repository: CRAN
Date/Publication: 2026-11-21 19:30:15 UTC
Built: R 4.7.0; ; 2026-11-22 00:51:58 UTC; windows
