To cite the mashr package in publications use:

Sarah Urbut, Gao Wang, Peter Carbonetto, Matthew Stephens (2019). “Flexible statistical methods for estimating and testing effects in genomic studies with multiple conditions.” Nature Genetics, 51(1), 187–195.

Corresponding BibTeX entry:

  @Article{,
    title = {Flexible statistical methods for estimating and testing
      effects in genomic studies with multiple conditions},
    author = {{Sarah Urbut} and {Gao Wang} and {Peter Carbonetto} and
      {Matthew Stephens}},
    journal = {Nature Genetics},
    volume = {51},
    number = {1},
    pages = {187--195},
    year = {2019},
  }