{
  "_id": "6b0242327510c4b9d7d8ec95",
  "Package": "Stem",
  "Type": "Package",
  "Title": "Spatio-Temporal Expectation-Maximization Models",
  "Version": "2.0.0",
  "Authors@R": "c(\nperson(\ngiven = \"Michela\",\nfamily = \"Cameletti\",\nrole = c(\"aut\", \"cph\"),\nemail = \"michela.cameletti@unibg.it\",\ncomment = c(ORCID = \"0000-0002-6502-7779\")\n),\nperson(\ngiven = \"Francesco\",\nfamily = \"Caccia\",\nrole = c(\"ctb\", \"cph\"),\ncomment = \"earlier contributions to the code and preparation of the povalley data\"\n),\nperson(\ngiven = \"Paolo\",\nfamily = \"Maranzano\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"pmaranzano.ricercastatistica@gmail.com\",\ncomment = c(ORCID = \"0000-0002-9228-2759\")\n)\n)",
  "Description": "Estimation of hierarchical spatio-temporal models through\nthe Expectation-Maximization (EM) algorithm within a\nlikelihood-based framework, following Fasso and Cameletti\n(2010) <doi:10.1177/0037549709102150> and the\nheterogeneous-network model of Fasso, Cameletti and Nicolis\n(2007) <doi:10.1002/env.837>, with the EM machinery of\nMcLachlan and Krishnan (2008, ISBN:9780470191613). Parameters\nare estimated by maximum likelihood via Kalman filtering and\nsmoothing; standard errors and spatial prediction uncertainty\nare obtained by a spatio-temporal parametric bootstrap. The\npackage also provides the spatially-clustered STEM (SC-STEM)\nmodels, an extension in which regression coefficients, variance\ncomponents and latent dynamics vary across spatial regimes\nestimated from the data by maximizing a Potts-penalized\nlikelihood, in the spirit of the spatially-clustered regression\nof Sugasawa and Murakami (2021)\n<doi:10.1016/j.spasta.2021.100525> and of the\nspatially-clustered spatial autoregressive models of Cerqueti,\nMaranzano and Mattera (2025) <doi:10.1007/s13253-025-00685-7>.\nSC-STEM comes with likelihood-based information criteria, a\ntwo-step rule based on the Bayesian information criterion for\nselecting the number of regimes and the spatial penalty, and a\nrefit-with-clustering parametric bootstrap that propagates the\nuncertainty of the estimated partition into intervals and\ntests.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/PaoloMaranzano/Stem",
  "BugReports": "https://github.com/PaoloMaranzano/Stem/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-22 01:12:01 UTC",
    "User": "root"
  },
  "Author": "Michela Cameletti [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-6502-7779>), Francesco Caccia\n[ctb, cph] (earlier contributions to the code and preparation\nof the povalley data), Paolo Maranzano [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-9228-2759>)",
  "Maintainer": "Paolo Maranzano <pmaranzano.ricercastatistica@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-21 19:30:15 UTC",
  "RemoteUrl": "https://github.com/cran/Stem",
  "RemoteRef": "HEAD",
  "RemoteSha": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
  "_user": "cran",
  "_type": "src",
  "_file": "Stem_2.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/1dfda06360154cf7aa551f01f93add345df9e377b75aa895d24e066d02053b30",
  "_filesize": 1414282,
  "_sha256": "1dfda06360154cf7aa551f01f93add345df9e377b75aa895d24e066d02053b30",
  "_expires": "2027-03-02T01:15:28.000Z",
  "_created": "2026-11-22T01:12:01.000Z",
  "_published": "2026-11-22T01:15:30.565Z",
  "_upstream": "https://github.com/cran/Stem",
  "_status": "success",
  "_maintainer": {
    "name": "Paolo Maranzano",
    "email": "pmaranzano.ricercastatistica@gmail.com",
    "login": "paolomaranzano",
    "description": "Assistant Professor (RTT) of Economic Statistics at UniMiB-DEMS in Milano, Italy & Senior Researcher at Fondazione Eni Enrico Mattei (FEEM) in Milano, Italy.",
    "uuid": 26416757,
    "orcid": "0000-0002-9228-2759"
  },
  "_jobs": [
    {
      "job": 137048531252,
      "time": 166,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14732868728"
    },
    {
      "job": 137048531300,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14733153777"
    },
    {
      "job": 137047385177,
      "time": 277,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14733316975"
    },
    {
      "job": 137048531232,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14733920180"
    },
    {
      "job": 137048531271,
      "time": 85,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14733541518"
    },
    {
      "job": 137048531235,
      "time": 111,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14732948554"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44969939165",
  "_commit": {
    "id": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
    "author": "Paolo Maranzano <pmaranzano.ricercastatistica@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.0.0\n",
    "time": 1795289415
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "geodist",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "spdep",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "2.0.0",
      "date": "2026-11-21"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "michelacameletti",
      "count": 1,
      "uuid": 32480100
    },
    {
      "user": "paolomaranzano",
      "count": 1,
      "uuid": 26416757
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 16,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/Stem"
  },
  "_mentions": 10,
  "_devurl": "https://github.com/paolomaranzano/stem",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/Stem.html"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2012-10-29"
    },
    {
      "version": "2.0.0",
      "date": "2026-11-21"
    }
  ],
  "_authors": [
    {
      "name": "Michela Cameletti",
      "email": "michela.cameletti@unibg.it",
      "orcid": "0000-0002-6502-7779",
      "role": [
        "aut",
        "cph"
      ]
    },
    {
      "name": "Francesco Caccia",
      "role": [
        "ctb",
        "cph"
      ]
    },
    {
      "name": "Paolo Maranzano",
      "email": "pmaranzano.ricercastatistica@gmail.com",
      "orcid": "0000-0002-9228-2759",
      "role": [
        "aut",
        "cre",
        "cph"
      ]
    }
  ],
  "_exports": [
    "SCSTEM_BootInference",
    "SCSTEM_Bootstrap",
    "SCSTEM_Complete",
    "SCSTEM_CV",
    "SCSTEM_Estimation",
    "SCSTEM_Infocrit",
    "SCSTEM_Select",
    "SCSTEM_Signal",
    "STEM_Bootstrap",
    "STEM_Complete",
    "STEM_control",
    "STEM_Estimation",
    "STEM_Fit",
    "STEM_Kriging",
    "STEM_Model",
    "STEM_Signal",
    "STEM_Simulation"
  ],
  "_datasets": [
    {
      "name": "pm10",
      "title": "Realistic data which illustrate the usage of the package Stem",
      "object": "pm10",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "povalley",
      "title": "Daily particulate matter in the Po Valley, 2019-2023",
      "object": "povalley",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "pm10",
      "title": "Realistic data which illustrate the usage of the package Stem",
      "topics": [
        "pm10"
      ]
    },
    {
      "page": "povalley",
      "title": "Daily particulate matter in the Po Valley, 2019-2023",
      "topics": [
        "povalley"
      ]
    },
    {
      "page": "print.SCSTEM_BootInference",
      "title": "Print method for the SC-STEM bootstrap inference",
      "topics": [
        "print.SCSTEM_BootInference"
      ]
    },
    {
      "page": "print.SCSTEM_Bootstrap",
      "title": "Print method for the SC-STEM parametric bootstrap",
      "topics": [
        "print.SCSTEM_Bootstrap"
      ]
    },
    {
      "page": "print.SCSTEM_CV",
      "title": "Print method for the blocked cross-validation of STEM and SC-STEM fits",
      "topics": [
        "print.SCSTEM_CV"
      ]
    },
    {
      "page": "print.SCSTEM_Estimation",
      "title": "Print method for SC-STEM fits",
      "topics": [
        "print.SCSTEM_Estimation"
      ]
    },
    {
      "page": "print.SCSTEM_Infocrit",
      "title": "Print method for SC-STEM information criteria",
      "topics": [
        "print.SCSTEM_Infocrit"
      ]
    },
    {
      "page": "print.SCSTEM_Select",
      "title": "Print method for the SC-STEM selection rule",
      "topics": [
        "print.SCSTEM_Select"
      ]
    },
    {
      "page": "SCSTEM_BootInference",
      "title": "Inference from the SC-STEM parametric bootstrap",
      "topics": [
        "SCSTEM_BootInference"
      ]
    },
    {
      "page": "SCSTEM_Bootstrap",
      "title": "Refit-with-clustering parametric bootstrap for SC-STEM models",
      "topics": [
        "SCSTEM_Bootstrap"
      ]
    },
    {
      "page": "SCSTEM_Complete",
      "title": "Completed response of a fitted SC-STEM model",
      "topics": [
        "SCSTEM_Complete"
      ]
    },
    {
      "page": "SCSTEM_CV",
      "title": "Blocked cross-validation of the predictive accuracy of STEM and SC-STEM fits",
      "topics": [
        "SCSTEM_CV"
      ]
    },
    {
      "page": "SCSTEM_Estimation",
      "title": "Spatially-clustered STEM estimation",
      "topics": [
        "SCSTEM_Estimation"
      ]
    },
    {
      "page": "SCSTEM_Infocrit",
      "title": "Information criteria over a grid of SC-STEM configurations",
      "topics": [
        "SCSTEM_Infocrit"
      ]
    },
    {
      "page": "SCSTEM_Select",
      "title": "Two-step selection of the SC-STEM hyperparameters",
      "topics": [
        "SCSTEM_Select"
      ]
    },
    {
      "page": "SCSTEM_Signal",
      "title": "Fitted values of a fitted SC-STEM model",
      "topics": [
        "SCSTEM_Signal"
      ]
    },
    {
      "page": "STEM_Bootstrap",
      "title": "Parametric bootstrap",
      "topics": [
        "STEM_Bootstrap"
      ]
    },
    {
      "page": "STEM_Complete",
      "title": "Completed response of a fitted STEM model",
      "topics": [
        "STEM_Complete"
      ]
    },
    {
      "page": "STEM_control",
      "title": "Computational settings of the STEM and SC-STEM estimators",
      "topics": [
        "STEM_control"
      ]
    },
    {
      "page": "STEM_Estimation",
      "title": "ML Estimation",
      "topics": [
        "STEM_Estimation"
      ]
    },
    {
      "page": "STEM_Fit",
      "title": "Fit a STEM or SC-STEM model, with or without a penalty on the coefficients",
      "topics": [
        "STEM_Fit"
      ]
    },
    {
      "page": "STEM_Kriging",
      "title": "Dynamical spatial mapping",
      "topics": [
        "STEM_Kriging"
      ]
    },
    {
      "page": "STEM_Model",
      "title": "Create a Stem Model",
      "topics": [
        "STEM_Model"
      ]
    },
    {
      "page": "STEM_Signal",
      "title": "Fitted values of a STEM model",
      "topics": [
        "STEM_Signal"
      ]
    },
    {
      "page": "STEM_Simulation",
      "title": "Simulation of spatio-temporal data",
      "topics": [
        "STEM_Simulation"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/Stem/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/cran/Stem/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "class",
    "classInt",
    "DBI",
    "deldir",
    "e1071",
    "geodist",
    "KernSmooth",
    "lattice",
    "MASS",
    "proxy",
    "Rcpp",
    "s2",
    "sf",
    "sp",
    "spData",
    "spdep",
    "units",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with STEM models ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The model",
        "Data",
        "Building a model object",
        "Estimation",
        "Uncertainty: the parametric bootstrap",
        "Spatial prediction",
        "Where to go next",
        "References"
      ],
      "created": "2026-11-21 19:30:15",
      "modified": "2026-11-21 19:30:15",
      "commits": 1
    },
    {
      "source": "SCSTEM.Rmd",
      "filename": "SCSTEM.html",
      "title": "Spatially-clustered STEM models ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why cluster the regression",
        "The data",
        "Fitting an SC-STEM model",
        "Two safeguards worth knowing about",
        "The scale of the penalty",
        "Choosing $K$ and $\\phi$",
        "Uncertainty: the refit-with-clustering bootstrap",
        "References"
      ],
      "created": "2026-11-21 19:30:15",
      "modified": "2026-11-21 19:30:15",
      "commits": 1
    },
    {
      "source": "function-map.Rmd",
      "filename": "function-map.html",
      "title": "Map of the package ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The four layers",
        "1. Data and the model object",
        "2. The estimation engine",
        "3. Simulation, prediction and uncertainty",
        "4. Spatially-clustered STEM",
        "A typical session",
        "Regenerating the map",
        "Is the implementation faithful to the papers?"
      ],
      "created": "2026-11-21 19:30:15",
      "modified": "2026-11-21 19:30:15",
      "commits": 1
    },
    {
      "source": "computational-notes.Rmd",
      "filename": "computational-notes.html",
      "title": "Computational notes ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. What \"cost $O(T d^3)$\" means",
        "2. Why the Woodbury identity helps",
        "3. Under what conditions",
        "4. The log-density, which is a different problem",
        "5. The M-step, written as matrix products",
        "6. What it is worth",
        "7. Where to look in the sources",
        "References"
      ],
      "created": "2026-11-21 19:30:15",
      "modified": "2026-11-21 19:30:15",
      "commits": 1
    },
    {
      "source": "estimation-experiments.Rmd",
      "filename": "estimation-experiments.html",
      "title": "Numerical experiments on the estimation algorithms ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Design",
        "2. Correctness of the implementation",
        "3. Exactness of what the package reports",
        "4. The four algorithms reach the same maximum",
        "5. Accuracy against the true values",
        "6. Computing time on whole fits",
        "7. The limits of the range",
        "8. Why the iterations add no jitter"
      ],
      "created": "2026-11-21 19:30:15",
      "modified": "2026-11-21 19:30:15",
      "commits": 1
    }
  ],
  "_score": 4.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "stem",
  "_universes": [
    "cran",
    "paolomaranzano"
  ],
  "_previous": "1.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-11-22T01:14:09.000Z",
      "distro": "resolute",
      "commit": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
      "fileid": "https://r2.ropensci.org/97dc28b3ac87329cf399137a8c2152c5e728185b822228c235abced695dccff4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44969939165"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-11-22T01:14:07.000Z",
      "distro": "resolute",
      "commit": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
      "fileid": "https://r2.ropensci.org/a11bab9c9ddd23c31765921ccf4ae4ce5bceb87f91be138461c8949224188710",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44969939165"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.0",
      "date": "2026-11-22T01:14:21.000Z",
      "commit": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
      "fileid": "https://r2.ropensci.org/7ecc0208040ee45cffc6df0fce87e4b5a58a6633f09bebfcf1a6a4e33b8dd533",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44969939165"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-11-22T01:13:02.000Z",
      "commit": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
      "fileid": "https://r2.ropensci.org/6678f2ddaeb2ac9f1275edd1d9dbce547d772215b745c3a8470420c3a270dd33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44969939165"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-11-22T01:13:18.000Z",
      "commit": "e257e493f6e58e4f038bce4f0a5d2d1f0a6e895b",
      "fileid": "https://r2.ropensci.org/02d43297f1eabb458d76ba99a697240e8c2c422151da6548e115187b3f3475f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44969939165"
    }
  ]
}