power.nb: Power and Sample Size Calculation for Differential Abundance Microbiome Studies

Provides functions for estimating statistical power and required sample sizes in differential abundance microbiome studies using negative binomial models. The methods are based on Agronah and Bolker (2025) <doi:10.1371/journal.pone.0318820>. The package includes tools for simulation-based power analysis and sample size estimation using generalized additive models (GAMs), and visualization utilities for exploring the relationship between power, effect size, abundance, and sample size.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: DESeq2, fitdistrplus, rlang, minpack.lm, foreach, tibble, purrr, mixtools, scam, ggplot2, ggrastr, metR, DEoptim, latex2exp, parallel, stats, doParallel
Suggests: rmarkdown, knitr, kableExtra, tidyverse, patchwork, dplyr, rlist
Published: 2026-06-15
DOI: 10.32614/CRAN.package.power.nb (may not be active yet)
Author: Michael Agronah ORCID iD [aut, cre], Ben Bolker ORCID iD [aut]
Maintainer: Michael Agronah <michaelagronah at gmail.com>
BugReports: https://github.com/magronah/power.nb/issues
License: MIT + file LICENSE
URL: https://michaelagronah.com/power.nb/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: power.nb results

Documentation:

Reference manual: power.nb.html , power.nb.pdf
Vignettes: Simulation for microbiome power analysis (source, R code)

Downloads:

Package source: power.nb_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=power.nb to link to this page.