To cite package ‘pretest’ in publications use:

Peng R (2023). pretest: A Novel Approach to Predictive Accuracy Testing in Nested Environments. R package version 0.2, https://CRAN.R-project.org/package=pretest.

Corresponding BibTeX entry:

  @Manual{,
    title = {pretest: A Novel Approach to Predictive Accuracy Testing
      in Nested Environments},
    author = {Rong Peng},
    year = {2023},
    note = {R package version 0.2},
    url = {https://CRAN.R-project.org/package=pretest},
  }