statistical-power

Calculate sample size, power, and minimum detectable effect for study designs.

74|5|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/dralkh/seerai --skill statistical-power
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-power
Source: https://github.com/dralkh/seerai/tree/main/skills/statistical-power
Command: npx skills add https://github.com/dralkh/seerai --skill statistical-power

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, statsmodels, matplotlib, pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you justify how many subjects, samples, or replicates you need before collecting data, so you can avoid underpowered studies, wasted resources, and weak claims.

Core Features & Use Cases

  • Closed-form power analysis for standard designs such as two-sample t-tests, paired tests, ANOVA, proportions, correlations, chi-square, and regression.
  • Simulation-based power for complex studies including logistic or Poisson regression, mixed models, clustered trials, survival analysis, mediation, and interactions.
  • Study-planning support for a priori sample-size estimates, minimum detectable effects, power curves, attrition adjustments, and sensitivity analyses for grants, IRB protocols, and preregistrations.

Quick Start

Ask the skill to calculate the sample size or power for your planned study using your effect size, alpha level, target power, and design details.

Frequently Asked Questions about statistical-power

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate sample size for a study before collecting data?

Calculate sample size by providing your expected effect size, alpha level, target power, and design details. This Skill computes requirements for t-tests, ANOVA, proportions, correlations, chi-square, and regression using closed-form formulas and Monte Carlo validation.

Can I estimate power for mixed models and clustered trial designs?

Yes, you can estimate power for mixed models and clustered trials using simulation-based power analysis. This Skill applies Monte Carlo validation to complex studies including logistic regression, Poisson regression, survival analysis, mediation, and interaction-heavy designs.

What inputs do I need for a power analysis with this tool?

You need effect-size inputs, alpha and target power settings, and planned analysis details to run a power analysis. The Skill uses these parameters to account for dropout, allocation ratios, and multiplicity in your study design.

Does this power analysis tool support adjustments for attrition and dropout?

Yes, this tool supports attrition adjustments and dropout accounting during sample-size estimation. It incorporates allocation ratios and multiplicity into the Monte Carlo validation to ensure your power analysis matches the planned study design.

What is the best way to plan sample size for an IRB protocol or grant proposal?

The best way to plan sample size for grants and IRB protocols is to run a priori estimates, generate power curves, and conduct sensitivity analyses. This Skill produces minimum detectable effect calculations and study-planning support for preregistrations.

When should I use simulation-based power analysis instead of closed-form formulas?

Use simulation-based power analysis for complex designs like clustered trials, mixed models, and survival analysis where closed-form formulas fall short. Standard designs such as two-sample t-tests, paired tests, and ANOVA use efficient closed-form power calculations instead.