To cite package 'prediction' in publications use:

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

Corresponding BibTeX entry:

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