What problem does it solve?
This Skill automates the process of conducting power analysis and preregistration for two-arm comparisons, saving time and reducing errors in study design.
Core Features & Use Cases
- Power Analysis: Computes the required sample size for a two-group comparison using Monte-Carlo simulation.
- Preregistration: Generates a preregistration document that specifies the study design, hypothesis, and analysis plan.
- Use Case: Ideal for researchers planning an A/B test, RCT, or behavioral study, ensuring the study is powered appropriately and the design is preregistered.
Quick Start
Run the power-analysis skill with the following command: power-analysis run --hypothesis "the new treatment improves patient outcomes" --outcome type: two-sample-mean baseline_mean: 50 sd: 10 min_effect: 5 --target_power 0.80 --alpha 0.05 --power_cmd "python3 /path/to/skill/tools/power_sim.py" --design_doc "/path/to/output/design.md" --sandbox_root "/path/to/sandbox" --budget 10