Statistical Power and Sample Size Calculation: Getting the Sample Size Right Before Data Collection
Introducing the SkillHub Enterprise Skill "Statistical Power & Sample Size Calculation" (@org-02qudk26/statistical-power, v1.0.0): purpose-built for sample size justification in grant applications, IRB submissions, and pre-registered protocols. It covers closed-form power calculations (t-tests, ANOVA, proportions, correlations, and more) as well as Monte Carlo simulation (GLMs, mixed models, cluster-randomized designs, and more), and ships with power.py, simulate_power.py, and an effect size reference. The article walks through skillhub CLI installation, Cursor skills directory setup, and Python dependencies, and provides reproducible examples for sample size, MDE, and power-curve estimation.
Read More