The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
stepwedgepower provides a general simulation-based
workflow for stepped-wedge cluster randomized trials with aggregated
binary outcomes. Version 0.1.1 adds:
This package is based on a PhD biostatistics rotation project on statistical methods for stepped wedge clinical trial designs. According to the rotation evaluation, the project involved:
The software was also used to provide sample size calculations for a study under development. In the permission email shown in the screenshots, Prof. Florin Vaida approved publishing the software to GitHub.
The original file mixed together:
This package reorganizes those steps into exported functions:
prepare_physician_data()summarize_by_specialty()fit_specialty_rate_model()estimate_specialty_rates()analyze_lpa_outcomes()simulate_stepwedge_trial()run_stepwedge_analysis()estimate_power()estimate_type1_error()# install.packages("remotes")
remotes::install_github("AmandaLinLi/stepwedgepower")library(stepwedgepower)
power_out <- estimate_power(
n_simulations = 1000,
treatment_or = 1.50,
n_clusters_per_sequence = c(10, 10, 10, 10),
sequence_names = paste0("Sequence ", 1:4),
baseline_probs = c(0.05, 0.05, 0.05, 0.05),
icc = 0.05,
n_per_cluster_period = 20,
seed = 2026
)
power_out
power_out$power
power_out$mcse
c(power_out$conf_low, power_out$conf_high)Version 0.1.0 argument names remain available with deprecation warnings.
A small synthetic dataset is included for quick testing:
ex_dat <- read_example_physician_data()
head(ex_dat)stepwedgepower/
DESCRIPTION
NAMESPACE
R/
man/
inst/extdata/
inst/scripts/
tests/
.github/workflows/
R CMD check inside the container.devtools::document().devtools::check().YOUR_GITHUB_USERNAME in
README.md.DESCRIPTION.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.