Package: SteppedPower 0.4.0

SteppedPower: Power Calculation for Stepped Wedge Designs

Tools for power and sample size calculation as well as design diagnostics for longitudinal mixed model settings, with a focus on stepped wedge designs. All calculations are oracle estimates i.e. assume random effect variances to be known (or guessed) in advance. The method is introduced in Hussey and Hughes (2007) <doi:10.1016/j.cct.2006.05.007>, extensions are discussed in Li et al. (2020) <doi:10.1177/0962280220932962>.

Authors:Philipp Mildenberger [aut, cre], Federico Marini [ctb]

SteppedPower_0.4.0.tar.gz
SteppedPower_0.4.0.zip(r-4.7-any)SteppedPower_0.4.0.zip(r-4.6-any)SteppedPower_0.4.0.zip(r-4.5-any)
SteppedPower_0.4.0.tgz(r-4.6-any)SteppedPower_0.4.0.tgz(r-4.5-any)
SteppedPower_0.4.0.tar.gz(r-4.7-any)SteppedPower_0.4.0.tar.gz(r-4.6-any)
SteppedPower_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
SteppedPower/json (API)

# Install 'SteppedPower' in R:
install.packages('SteppedPower', repos = c('https://pmildenb.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/pmildenb/steppedpower/issues

On CRAN:

Conda:

4.77 score 13 scripts 489 downloads 18 exports 70 dependencies

Last updated from:f5dceb9630. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK235
source / vignettesOK240
linux-releaseOK212
macos-releaseOK127
macos-oldrelOK135
windows-develOK110
windows-releaseOK99
windows-oldrelOK140
wasm-releaseOK133

Exports:alpha012_to_RandEffcompute_glsPowercompute_InfoContentconstruct_CovBlkconstruct_CovMatconstruct_DesMatconstruct_incompMatconstruct_timeAdjustconstruct_trtMatglsPowericc_to_RandEffplot_CellWeightsplot_InfoContentRandEff_to_alpha012RandEff_to_icctTestPwrVarClosed_KaszaVarClosed_Li

Dependencies:askpassbase64encbslibcachemclicpp11crosstalkcurldata.tabledigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttrisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclemagrittrMatrixmemoisemimeopensslotelpillarpkgconfigplotlypromisespurrrR6rappdirsRColorBrewerRcppRcppArmadilloRcppParallelRfastrlangrmarkdownS7sassscalesstringistringrsystibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyamlzigg

Binomial and Count Outcomes in SteppedPower
Methods and Notation | Covariance Structure Specifications | Random effects | $\alpha_0$, $\alpha_1$, $\alpha_2$ | Example Usage | Differences in the Variance estimator $\text{Var}(\hat\theta)$ the $(p_0, p_1)$ Plane | Cell-by-cell calculation of $\sigma^2$ versus midpoint method | Random effects versus alpha notation | Count (Poisson) Outcomes | References

Last update: 2026-09-21
Started: 2026-09-21

Getting Started with SteppedPower
About SteppedPower | Methods and Notation | Covariance Structure Specifications | $\alpha_0$, $\alpha_1$, $\alpha_2$ | ICC, CAC and IAC | Key functions | glsPower | construct_-functions | Features | Plotting | Find Sample Size for given Power | Unequal Cluster Sizes | Incomplete Stepped Wedge Designs | Autocorrelated random effects | Adjustment for Secular Trends | Non-Gaussian outcomes | Use Cases | Cross-sectional Parallel Group Design | Longitudinal Parallel Design | Stepped Wedge designs with empty sequences (i.e. empty waves) | Closed cohort SWD | Open cohort designs | Covariance structure for open cohort designs | Reproducing common closed formulae | Closed formula for proportional decay structure | Closed formula for open cohort designs | Session Info | References

Last update: 2026-09-21
Started: 2020-09-07

Incomplete Designs in SteppedPower
Main Types of Incomplete Designs | Defining Incomplete Designs in SteppedPower | Examples | 1 | 2 | 3

Last update: 2026-08-31
Started: 2022-08-10