To cite mrf2d in publications use:

Freguglia V, Garcia NL (2022). “Inference Tools for Markov Random Fields on Lattices: The R Package mrf2d.” Journal of Statistical Software, 101(8), 1–36. doi:10.18637/jss.v101.i08.

Corresponding BibTeX entry:

  @Article{,
    title = {Inference Tools for {M}arkov Random Fields on Lattices:
      The {R} Package {mrf2d}},
    author = {Victor Freguglia and Nancy Lopes Garcia},
    journal = {Journal of Statistical Software},
    year = {2022},
    volume = {101},
    number = {8},
    pages = {1--36},
    doi = {10.18637/jss.v101.i08},
  }