Package: BBMBC
Title: Beta-Binomial Models for Evaluating Overdispersed B-Cell
        Phenotyping Data
Version: 1.0.3
Authors@R: 
    person("Andrew", "Shin", , "ashin2@uw.edu", role = c("aut", "cre"))
Description: Provides tools for statistical power calculations
    to plan early-phase vaccine and immunotherapy trials comparing rare,
    antigen-specific immune cell frequencies. Originally designed for memory
    B-cell phenotyping studies and generalizable to high-parameter flow
    cytometry assays across vaccinology and immuno-oncology, the models overdispersed 
    count distributions using Beta-Binomial generalized
    linear models. Unlike rank-based tests, this approach retains response
    magnitude information while accounting for extra-binomial variation, small
    sample sizes, unequal between-participant variability, and uncertainty in
    pilot estimates. Includes method-of-moments dispersion estimation,
    likelihood ratio testing across experimental arms, and Monte Carlo
    simulation to evaluate statistical power with well-controlled empirical
    Type I error rates. This workflow is 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>.
Encoding: UTF-8
Depends: R (>= 4.1.0)
Imports: doParallel, foreach, glmmTMB, parallel, stats, utils
Suggests: testthat (>= 3.0.0)
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.1
License: MIT + file LICENSE
NeedsCompilation: no
Packaged: 2026-11-21 00:19:55 UTC; andrewshin
Author: Andrew Shin [aut, cre]
Maintainer: Andrew Shin <ashin2@uw.edu>
Repository: CRAN
Date/Publication: 2026-11-22 00:10:02 UTC
