BBMBC: Beta-Binomial Models for Immune Cell Frequencies and Power Calculations

Provides tools to model overdispersed immune cell frequencies using Beta-Binomial generalized linear models. Originally designed for memory B cells, the framework generalizes to evaluate rare cellular immune responses across vaccinology, immuno-oncology, and related fields. Includes method-of-moments dispersion estimation, likelihood ratio testing across experimental arms, and Monte Carlo simulation to calculate statistical power and Type I error rates. The methodologies are directly motivated by the analysis of immunology data in "Vaccination with mRNA-encoded membrane-anchored HIV envelope trimers elicited tier 2 neutralizing antibodies in a phase 1 clinical trial" (Parks et al. 2025) <doi:10.1126/scitranslmed.ady6831>.

Version: 1.0.1
Depends: R (≥ 4.1.0)
Imports: doParallel, foreach, glmmTMB, parallel, stats, utils
Suggests: testthat (≥ 3.0.0)
Published: 2026-10-31
DOI: 10.32614/CRAN.package.BBMBC
Author: Andrew Shin [aut, cre]
Maintainer: Andrew Shin <ashin2 at uw.edu>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: NEWS
CRAN checks: BBMBC results

Documentation:

Reference manual: BBMBC.html , BBMBC.pdf

Downloads:

Package source: BBMBC_1.0.1.tar.gz
Windows binaries: r-devel: BBMBC_0.1.0.zip, r-release: BBMBC_0.1.0.zip, r-oldrel: BBMBC_0.1.0.zip
macOS binaries: r-release (arm64): BBMBC_0.1.0.tgz, r-oldrel (arm64): BBMBC_0.1.0.tgz, r-release (x86_64): BBMBC_0.1.0.tgz, r-oldrel (x86_64): BBMBC_0.1.0.tgz
Old sources: BBMBC archive

Linking:

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