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
[aut, cre],
Ben Bolker [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:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=power.nb
to link to this page.