To cite package 'prediction' in publications use:

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

Corresponding BibTeX entry:

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