Agent skill

Power Analysis Guide

by wentorai in wentorai/research-plugins

Sample size calculation and statistical power analysis guide

MITAuto-check passedResearch & Science

Install Power Analysis Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill power-analysis-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins power-analysis-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analysis/statistics/power-analysis-guide .claude/skills/power-analysis-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
power-analysis-guide
GitHub stars
298
Used in
1 other repo
Token cost
~1.8k tokens
SKILL.md length
470 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Sample size calculation and statistical power analysis guide

  • Works in 6 steps: Select test family: t-tests, F-tests,… → Select statistical test: e.g., "Means:… → Select type of analysis: A priori… → …
  • Tasks that involve Experimental design
  • SKILL.md covers Core Concepts, Effect Size Conventions, Power Analysis in Python… and Power Analysis in R (pwr…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Power Analysis Guide is an agent skill from wentorai/research-plugins. Sample size calculation and statistical power analysis guide

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering Experimental design and Statistics. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Experimental design
  • Tasks that involve Statistics

Example prompts

  • “/power-analysis-guide”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Select test family: t-tests, F-tests, chi-square, z-tests, exact tests
  2. Select statistical test: e.g., "Means: Difference between two independent means (two groups)"
  3. Select type of analysis: A priori (compute N), Post hoc (compute power), Sensitivity (compute detectable effect)
  4. Input parameters: Effect size, alpha, power, allocation ratio
  5. Calculate: Click "Calculate" to get the result
  6. Plot: Use "X-Y plot for a range of values" to visualize power curves

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python and r).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Power Analysis Guide loads about 1.8k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 470 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 470 words, ~1,826 tokens.

Download SKILL.mdSave it as .claude/skills/power-analysis-guide/SKILL.md (or your agent's skills folder).
name
power-analysis-guide
description
Sample size calculation and statistical power analysis guide

Power Analysis Guide

Calculate appropriate sample sizes for your study using power analysis, understand effect sizes, and avoid underpowered or wastefully overpowered designs.

Core Concepts

The Four Parameters of Power Analysis

Every power analysis involves four interrelated quantities. Fix any three to solve for the fourth:

ParameterSymbolDefinitionTypical Value
Effect sized, r, f, etc.Magnitude of the phenomenon you expect to detectVaries by field
Significance level (alpha)alphaProbability of Type I error (false positive)0.05
Statistical power (1 - beta)1 - betaProbability of detecting a true effect0.80 or 0.90
Sample sizeNNumber of observations neededSolve for this
Error Types
H0 is true (no effect)H0 is false (effect exists)
Reject H0Type I error (alpha)Correct (power = 1 - beta)
Fail to reject H0Correct (1 - alpha)Type II error (beta)

Effect Size Conventions

Cohen's d (Two-Group Comparison)
d = (M1 - M2) / SD_pooled
SizeCohen's dInterpretation
Small0.2Subtle, may need large N to detect
Medium0.5Noticeable, typical in social sciences
Large0.8Obvious, often visible without statistics
Correlation (r)
Sizerr-squared
Small0.11% variance explained
Medium0.39% variance explained
Large0.525% variance explained
Cohen's f (ANOVA)
SizefEquivalent eta-squared
Small0.100.01
Medium0.250.06
Large0.400.14
Odds Ratio (Logistic Regression)
SizeOR
Small1.5
Medium2.5
Large4.0

Power Analysis in Python (statsmodels)

Two-Sample t-Test
python
from statsmodels.stats.power import TTestIndPower

analysis = TTestIndPower()

# Solve for sample size
n = analysis.solve_power(
    effect_size=0.5,    # Cohen's d = medium
    alpha=0.05,         # Significance level
    power=0.80,         # 80% power
    ratio=1.0,          # Equal group sizes
    alternative='two-sided'
)
print(f"Required N per group: {int(n) + 1}")  # Output: 64

# Solve for power (given N)
power = analysis.solve_power(
    effect_size=0.5,
    alpha=0.05,
    nobs1=50,
    ratio=1.0,
    alternative='two-sided'
)
print(f"Power with N=50 per group: {power:.3f}")  # Output: 0.697
Paired t-Test
python
from statsmodels.stats.power import TTestPower

analysis = TTestPower()
n = analysis.solve_power(
    effect_size=0.3,    # Small-medium effect
    alpha=0.05,
    power=0.80,
    alternative='two-sided'
)
print(f"Required N (paired): {int(n) + 1}")  # Output: 90
One-Way ANOVA
python
from statsmodels.stats.power import FTestAnovaPower

analysis = FTestAnovaPower()
n = analysis.solve_power(
    effect_size=0.25,   # Cohen's f = medium
    alpha=0.05,
    power=0.80,
    k_groups=4          # Number of groups
)
print(f"Required N per group: {int(n) + 1}")  # Output: 45
Chi-Square Test
python
from statsmodels.stats.power import GofChisquarePower

analysis = GofChisquarePower()
n = analysis.solve_power(
    effect_size=0.3,    # Cohen's w = medium
    alpha=0.05,
    power=0.80,
    n_bins=4            # Degrees of freedom + 1
)
print(f"Required total N: {int(n) + 1}")
Multiple Regression
python
from statsmodels.stats.power import FTestPower

analysis = FTestPower()
# For R-squared: convert to f2 = R2 / (1 - R2)
r_squared = 0.10  # Expected R-squared for the model
f2 = r_squared / (1 - r_squared)  # f2 = 0.111

n = analysis.solve_power(
    effect_size=f2,
    alpha=0.05,
    power=0.80,
    df_num=5            # Number of predictors
)
# n returned is df_denom; total N = n + df_num + 1
total_n = int(n) + 5 + 1
print(f"Required total N: {total_n}")

Power Analysis in R (pwr Package)

r
library(pwr)

# Two-sample t-test
result <- pwr.t.test(d = 0.5, sig.level = 0.05, power = 0.80,
                     type = "two.sample", alternative = "two.sided")
cat("N per group:", ceiling(result$n), "\n")

# Correlation test
result <- pwr.r.test(r = 0.3, sig.level = 0.05, power = 0.80,
                     alternative = "two.sided")
cat("Total N:", ceiling(result$n), "\n")

# One-way ANOVA (4 groups)
result <- pwr.anova.test(k = 4, f = 0.25, sig.level = 0.05, power = 0.80)
cat("N per group:", ceiling(result$n), "\n")

# Chi-square test
result <- pwr.chisq.test(w = 0.3, df = 3, sig.level = 0.05, power = 0.80)
cat("Total N:", ceiling(result$N), "\n")

# Plot power curve
result <- pwr.t.test(d = 0.5, sig.level = 0.05, power = NULL,
                     n = seq(10, 200, by = 5))
plot(result)
Show full SKILL.md (229 more words)Show less

Using G*Power (Desktop Application)

G*Power (gpower.hhu.de) is a free, widely-used GUI application for power analysis:

  1. Select test family: t-tests, F-tests, chi-square, z-tests, exact tests
  2. Select statistical test: e.g., "Means: Difference between two independent means (two groups)"
  3. Select type of analysis: A priori (compute N), Post hoc (compute power), Sensitivity (compute detectable effect)
  4. Input parameters: Effect size, alpha, power, allocation ratio
  5. Calculate: Click "Calculate" to get the result
  6. Plot: Use "X-Y plot for a range of values" to visualize power curves

Practical Recommendations

Choosing Effect Sizes

Do NOT blindly use Cohen's conventions. Instead:

  1. Literature review: Find effect sizes reported in similar studies
  2. Pilot data: Run a small pilot study to estimate the effect
  3. Smallest effect of interest (SESOI): What is the smallest effect that would be practically meaningful?
  4. Meta-analyses: Use pooled effect sizes from meta-analyses in your area
Common Mistakes
MistakeProblemSolution
Post hoc power analysisCircular and uninformative after data collectionOnly do a priori power analysis
Using Cohen's "medium" by defaultMay be unrealistic for your fieldBase on literature or SESOI
Ignoring attritionActual N may be lower than plannedInflate N by 10-20% for expected dropout
Forgetting multiple comparisonsBonferroni corrections reduce powerAdjust alpha for the number of tests
Not reporting power analysisReviewers cannot evaluate adequacyAlways report in Methods section
Reporting Template
A priori power analysis was conducted using [G*Power 3.1 / statsmodels / R pwr].
For a [test name] with an expected effect size of [d/r/f = X] (based on
[source: previous study / meta-analysis / pilot data]), alpha = .05, and
power = .80, the required sample size was [N per group / total N]. To account
for an estimated [X]% attrition rate, we recruited [final N] participants.

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/analysis/statistics/power-analysis-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Power Analysis Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Power Analysis Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Power Analysis Guide this skillwentorai/research-plugins2981 repos~1.8kAutomated safety check: PassMIT
Data Scientistmagnus919/hermes-profiles282—~3.3kAutomated safety check: PassMIT
Data Scientistmagnus919/agent-skills116—~4.1kAutomated safety check: PassMIT
Statistical PowerK-Dense-AI/scientific-agent-skills48k1 repos~4.4kAutomated safety check: NotesMIT
Algo Rank Wilsonasgard-ai-platform/skills242—~1.1kAutomated safety check: PassMIT
Analyze StatsAperivue/medsci-skills331—~7kAutomated safety check: PassMIT

Similar skills

  • Data Scientist

    magnus919/hermes-profiles

    PhD-level expertise in data science, statistics, and machine learning.

    282 GitHub stars~3.3k tokensUpdated 3 mo ago
    Research & ScienceAuto-check passed
  • Data Scientist

    magnus919/agent-skills

    A skill your agent uses for PhD-level expertise in data science, statistics, and machine learning: rigorous statistical analysis, experimental design, causal inference, advanced modeling, research…

    116 GitHub stars~4.1k tokensUpdated today
    Research & ScienceAuto-check passed
  • Statistical Power

    K-Dense-AI/scientific-agent-skills

    Calculates sample sizes and statistical power for study planning.

    48k GitHub starsUsed in 1 repo~4.4k tokens
    Research & ScienceAuto-check: notes
  • Algo Rank Wilson

    asgard-ai-platform/skills

    Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Research & ScienceAuto-check passed
  • Analyze Stats

    Aperivue/medsci-skills

    A skill your agent uses when data needs statistical analysis.

    331 GitHub stars~7k tokensUpdated 3 days ago
    Research & ScienceAuto-check passed
  • Hri Author Response

    brycewang-stanford/Awesome-Journal-Skills

    A skill your agent uses when writing the single ACM/IEEE HRI full-paper rebuttal that responds to three external reviewers and two area chairs — triaging study-design and statistics critiques…

    1.2k GitHub stars~1.4k tokensUpdated 12 days ago
    Research & ScienceAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Power Analysis Guide

What does Power Analysis Guide do?

Sample size calculation and statistical power analysis guide. Power Analysis Guide is an agent skill from wentorai/research-plugins.

When should I use Power Analysis Guide?

Power Analysis Guide fits situations like: tasks that involve Experimental design; tasks that involve Statistics.

How do I install Power Analysis Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill power-analysis-guide -a claude-code`. Or copy the skill folder (skills/analysis/statistics/power-analysis-guide in wentorai/research-plugins) into .claude/skills/power-analysis-guide in your project. Claude Code loads it when a task matches its description.

How do I install Power Analysis Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill power-analysis-guide -a codex`. Or copy the skill folder (skills/analysis/statistics/power-analysis-guide in wentorai/research-plugins) into .agents/skills/power-analysis-guide in your project. Codex loads it when a task matches its description.

Can I use Power Analysis Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill power-analysis-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/power-analysis-guide, .gemini/skills/power-analysis-guide, .github/skills/power-analysis-guide and .opencode/skills/power-analysis-guide in your project.

What does Power Analysis Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Power Analysis Guide is instructions for the agent only. Our summary lists: Python 3.

Does Power Analysis Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Power Analysis Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Power Analysis Guide use?

Power Analysis Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Power Analysis Guide use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Power Analysis Guide?

Skills that share tags, products or a category with Power Analysis Guide: Data Scientist (magnus919/hermes-profiles, 282 stars), Data Scientist (magnus919/agent-skills, 116 stars), Statistical Power (K-Dense-AI/scientific-agent-skills, 48k stars) and Algo Rank Wilson (asgard-ai-platform/skills, 242 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Power Analysis Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.