Package: stepwedgepower
Type: Package
Title: Stepped-Wedge Clinical Trial Analysis and Power Simulation
Version: 0.1.3
Authors@R: c(
    person(given = "Lin (Amanda)", family = "Li", role = c("aut", "cre"), email = "amandali14124277@gmail.com"),
    person(given = "Florin", family = "Vaida", role = "aut",
           comment = c(degree = "PhD"))
  )
Description: Provides reusable functions for aggregated cluster-period data,
    mixed-effects analysis, and simulation-based power and type I error
    evaluation in stepped-wedge cluster randomized trials. The design and
    mixed-effects analysis follow Hussey and Hughes (2007)
    <doi:10.1016/j.cct.2006.05.007>. Intraclass correlations for binary
    outcomes are converted to logistic-normal random-intercept standard
    deviations following Eldridge, Ukoumunne and Carlin (2009)
    <doi:10.1111/j.1751-5823.2009.00092.x>. Monte Carlo uncertainty in
    estimated power is summarized using the exact binomial interval of
    Clopper and Pearson (1934) <doi:10.1093/biomet/26.4.404>. The simulation
    engine supports sequence-specific baseline risks, cluster random effects,
    direct intraclass-correlation specification, Monte Carlo uncertainty
    intervals, and model-fitting diagnostics. Applied physician and specialty
    helpers are retained for backward compatibility and for an example
    health-services workflow.
License: MIT + file LICENSE
Encoding: UTF-8
Imports: lme4
Suggests: testthat (>= 3.0.0), knitr, rmarkdown
Config/testthat/edition: 3
Config/roxygen2/version: 8.0.0
NeedsCompilation: no
Packaged: 2026-07-13 16:41:59 UTC; amandalinli
Author: Lin (Amanda) Li [aut, cre],
  Florin Vaida [aut] (degree: PhD)
Maintainer: Lin (Amanda) Li <amandali14124277@gmail.com>
Repository: CRAN
Date/Publication: 2026-07-13 23:00:02 UTC
Built: R 4.6.1; ; 2026-07-13 23:44:23 UTC; unix
