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)SteppedPower_0.4.0.zip(r-4.6)SteppedPower_0.4.0.zip(r-4.5)
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.04 score 11 scripts 491 downloads 18 exports 70 dependencies

Last updated from:911f4743b3. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK178
source / vignettesOK194
linux-release-x86_64OK196
macos-release-arm64OK144
macos-oldrel-arm64OK96
windows-develOK115
windows-releaseOK107
windows-oldrelOK116
wasm-releaseOK124

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

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-07-14
Started: 2020-09-07

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

Last update: 2026-07-14
Started: 2022-08-10