To cite package ‘nRegression’ in publications use:

Shilane D (2023). nRegression: Simulation-Based Calculations of Sample Size for Linear and Logistic Regression. R package version 0.5.1, https://CRAN.R-project.org/package=nRegression.

Corresponding BibTeX entry:

  @Manual{,
    title = {nRegression: Simulation-Based Calculations of Sample Size
      for Linear and Logistic Regression},
    author = {David Shilane},
    year = {2023},
    note = {R package version 0.5.1},
    url = {https://CRAN.R-project.org/package=nRegression},
  }