To cite `spam` in publications use:

Reinhard Furrer, Stephan R. Sain (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. URL http://www.jstatsoft.org/v36/i10/.

Florian Gerber, Reinhard Furrer (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. URL http://www.jstatsoft.org/v63/c01/.

Corresponding BibTeX entries:

  @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},
    url = {http://www.jstatsoft.org/v36/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},
    url = {http://www.jstatsoft.org/v63/c01/},
  }