To cite `spam` in publications use:

Furrer R, Flury R, Gerber F (2023). spam: SPArse Matrix. R package version 2.10-0, https://CRAN.R-project.org/package=spam.

Furrer R, Sain SR (2010). “spam: A Sparse Matrix R Package with Emphasis on MCMC Methods for Gaussian Markov Random Fields.” Journal of Statistical Software, 36(10), 1–25. doi:10.18637/jss.v036.i10.

Gerber F, Furrer R (2015). “Pitfalls in the Implementation of Bayesian Hierarchical Modeling of Areal Count Data: An Illustration Using BYM and Leroux Models.” Journal of Statistical Software, Code Snippets, 63(1), 1–32. doi:10.18637/jss.v063.c01.

Gerber F, Moesinger K, Furrer R (2017). “Extending R packages to support 64-bit compiled code: An illustration with spam64 and GIMMS NDVI3g data.” Computer & Geoscience, 104, 109–119. ISSN 0098-3004, doi:10.1016/j.cageo.2016.11.015.

Corresponding BibTeX entries:

  @Manual{,
    year = {2023},
    title = {{spam}: SPArse Matrix},
    author = {Reinhard Furrer and Roman Flury and Florian Gerber},
    note = {R package version 2.10-0},
    url = {https://CRAN.R-project.org/package=spam},
  }
  @Article{,
    title = {{spam}: A Sparse Matrix {R} Package with Emphasis on
      {MCMC} Methods for {G}aussian {M}arkov Random Fields},
    author = {Reinhard Furrer and Stephan R. Sain},
    journal = {Journal of Statistical Software},
    year = {2010},
    volume = {36},
    number = {10},
    pages = {1--25},
    doi = {10.18637/jss.v036.i10},
  }
  @Article{,
    title = {Pitfalls in the Implementation of {B}ayesian Hierarchical
      Modeling of Areal Count Data: An Illustration Using {BYM} and
      {L}eroux Models},
    author = {Florian Gerber and Reinhard Furrer},
    journal = {Journal of Statistical Software, Code Snippets},
    year = {2015},
    volume = {63},
    number = {1},
    pages = {1--32},
    doi = {10.18637/jss.v063.c01},
  }
  @Article{,
    title = {Extending {R} packages to support 64-bit compiled code: An
      illustration with spam64 and {GIMMS} {NDVI3g} data},
    author = {Florian Gerber and Kaspar Moesinger and Reinhard Furrer},
    journal = {Computer & Geoscience},
    year = {2017},
    volume = {104},
    pages = {109--119},
    issn = {0098-3004},
    doi = {10.1016/j.cageo.2016.11.015},
  }