To cite package ‘allocation’ in publications use:

  Raim AM (2025). _allocation: Exact Optimal Allocation Algorithms for
  Stratified Sampling_. R package version 0.1.0,
  <https://github.com/andrewraim/allocation>.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {allocation: Exact Optimal Allocation Algorithms for Stratified Sampling},
    author = {Andrew M. Raim},
    year = {2025},
    note = {R package version 0.1.0},
    url = {https://github.com/andrewraim/allocation},
  }
