Package: stepwedgepower 0.1.0

Amanda (Lin) Li
stepwedgepower: Tools for Stepped-Wedge Clinical Trial Analysis and Power Simulation
Refactors an academic stepped-wedge clinical trial analysis script into reusable functions for physician-level data preparation, specialty-level rate modeling, and simulation-based power calculations with a random provider effects. The package was designed to support Eli Lilly Lp(a) grant support and more general stepped-wedge planning workflows.
Authors:
stepwedgepower_0.1.0.tar.gz
stepwedgepower_0.1.0.zip(r-4.7)stepwedgepower_0.1.0.zip(r-4.6)stepwedgepower_0.1.0.zip(r-4.5)
stepwedgepower_0.1.0.tgz(r-4.6-any)stepwedgepower_0.1.0.tgz(r-4.5-any)
stepwedgepower_0.1.0.tar.gz(r-4.7-any)stepwedgepower_0.1.0.tar.gz(r-4.6-any)
stepwedgepower_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
stepwedgepower/json (API)
| # Install 'stepwedgepower' in R: |
| install.packages('stepwedgepower', repos = c('https://amandalinli.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/amandalinli/stepwedgepower/issues
Last updated from:ebe57105cc. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 150 | ||
| source / vignettes | OK | 184 | ||
| linux-release-x86_64 | OK | 153 | ||
| macos-release-arm64 | OK | 167 | ||
| macos-oldrel-arm64 | OK | 148 | ||
| windows-devel | OK | 90 | ||
| windows-release | OK | 85 | ||
| windows-oldrel | OK | 83 | ||
| wasm-release | OK | 111 |
Exports:analyze_lpa_outcomesestimate_powerestimate_specialty_ratesestimate_type1_errorfit_specialty_rate_modelprepare_physician_dataread_example_physician_datarun_stepwedge_analysissimulate_stepwedge_trialsummarize_by_specialty
Dependencies:bootlatticelme4MASSMatrixminqanlmenloptrrbibutilsRcppRcppEigenRdpackreformulasrlang
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| stepwedgepower: Tools for stepped-wedge clinical trial analysis and power simulation | stepwedgepower-package |
| Reproduce the core Lp(a) outcome analyses | analyze_lpa_outcomes |
| Estimate power by repeated stepped-wedge simulation | estimate_power |
| Estimate specialty-specific probabilities from a fitted model | estimate_specialty_rates |
| Estimate type I error by repeated stepped-wedge simulation | estimate_type1_error |
| Fit a specialty-level testing-rate model | fit_specialty_rate_model |
| Prepare physician-level stepped-wedge analysis data | prepare_physician_data |
| Read the bundled example physician data | read_example_physician_data |
| Fit the stepped-wedge analysis model to a simulated dataset | run_stepwedge_analysis |
| Simulate one stepped-wedge trial dataset | simulate_stepwedge_trial |
| Summarize physician counts by specialty | summarize_by_specialty |