To cite nearfar in publications use:

Rigdon J, Baiocchi M, Basu S (2018). “Near-Far Matching in R: The nearfar Package.” Journal of Statistical Software, Code Snippets, 86(5), 1–21. doi:10.18637/jss.v086.c05.

Corresponding BibTeX entry:

  @Article{,
    title = {Near-Far Matching in {R}: The {nearfar} Package},
    author = {Joseph Rigdon and Michael Baiocchi and Sanjay Basu},
    journal = {Journal of Statistical Software, Code Snippets},
    year = {2018},
    volume = {86},
    number = {5},
    pages = {1--21},
    doi = {10.18637/jss.v086.c05},
  }