To cite package 'prediction' in publications use:

Thomas J. Leeper (2018). prediction: Tidy, Type-Safe 'prediction()' Methods. R package version 0.3.2.

Corresponding BibTeX entry:

  @Manual{,
    title = {prediction: Tidy, Type-Safe 'prediction()' Methods},
    author = {Thomas J. Leeper},
    year = {2018},
    note = {R package version 0.3.2},
  }