Statistical Analyst
alirezarezvani/claude-skills
Run hypothesis tests, analyze A/B experiment results, calculate sample sizes, and interpret statistical significance with effect sizes.
Sample-size and statistical power calculations for planning studies.
$ npx skills add spacering-net/codeg --skill statistical-power -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install spacering-net/codeg statistical-power --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/spacering-net/codeg.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src-tauri/science/skills/statistical-power .claude/skills/statistical-power && rm -rf skills-srcUse ~/.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/
Install the "statistical-power" agent skill from https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-power into .claude/skills/statistical-power/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-power", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-powerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add spacering-net/codeg --skill statistical-power -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install spacering-net/codeg statistical-power --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spacering-net/codeg.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src-tauri/science/skills/statistical-power .agents/skills/statistical-power && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "statistical-power" agent skill from https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-power into .agents/skills/statistical-power/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-power", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add spacering-net/codeg --skill statistical-power -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install spacering-net/codeg statistical-power --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spacering-net/codeg.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src-tauri/science/skills/statistical-power .cursor/skills/statistical-power && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "statistical-power" agent skill from https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-power into .cursor/skills/statistical-power/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-power", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/spacering-net/codeg.git --path src-tauri/science/skills/statistical-power--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add spacering-net/codeg --skill statistical-power -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install spacering-net/codeg statistical-power --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spacering-net/codeg.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src-tauri/science/skills/statistical-power .gemini/skills/statistical-power && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "statistical-power" agent skill from https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-power into .gemini/skills/statistical-power/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-power", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install spacering-net/codeg statistical-powerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add spacering-net/codeg --skill statistical-power -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/spacering-net/codeg.git skills-src && mkdir -p .github/skills && cp -r skills-src/src-tauri/science/skills/statistical-power .github/skills/statistical-power && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "statistical-power" agent skill from https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-power into .github/skills/statistical-power/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-power", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add spacering-net/codeg --skill statistical-power -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install spacering-net/codeg statistical-power --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spacering-net/codeg.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src-tauri/science/skills/statistical-power .opencode/skills/statistical-power && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "statistical-power" agent skill from https://github.com/spacering-net/codeg/tree/main/src-tauri/science/skills/statistical-power into .opencode/skills/statistical-power/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-power", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
statistical-powerSample-size and statistical power calculations for planning studies.
Statistical Power is an agent skill from spacering-net/codeg. Sample-size and statistical power calculations for planning studies. Use whenever someone asks "how many subjects/samples/replicates do I need", wants an a priori power analysis, a minimum detectable effect (MDE), a power curve, or needs to justify a sample size for a grant, IRB protocol, or pre-registration. Covers closed-form power for t-tests, ANOVA, proportions, correlations, chi-square, and regression, plus simulation-based (Monte Carlo) power for designs with no formula — logistic/Poisson regression, mixed…
Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/closed_form_recipes.md`, `references/effect_sizes.md` and `references/simulation_based_power.md`). Compatibility notes: Requires Python =3.10. Examples target statsmodels =0.14.6, scipy =1.11, pingouin =0.6, numpy =1.26, and matplotlib. Optional extras are statsmodels mixed…
It sits in Data & Analytics, covering Experimental design and Statistics. The repository describes itself as: Collaborative multi-agent AI coding workspace: aggregate sessions from Claude Code, Codex, OpenCode, Pi, Grok Build, etc. Desktop app, self-hosted server, or Docker. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 05905cc. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditBashFrom allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires Python >=3.10. Examples target statsmodels >=0.14.6, scipy >=1.11, pingouin >=0.6, numpy >=1.26, and matplotlib. Optional extras are statsmodels mixed models and lifelines for simulation-based power.
From compatibility in the SKILL.md frontmatter.
Statistical Power loads about 3.6k tokens when it runs, and up to ~7.9k if it reads all its reference files. Until then it costs about 233 tokens; SKILL.md has 1,476 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Write, Edit, BashAutomated 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); the scripts in this folder are not scanned.
The full file from spacering-net/codeg at commit 05905cc, republished under its MIT licence (© spacering-net). 1,476 words, ~3,580 tokens.
.claude/skills/statistical-power/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Power analysis answers one of the most consequential questions in study planning: how large a sample do you need to reliably detect an effect of a given size, and what could you detect with the sample you can afford? An underpowered study wastes resources and produces inconclusive or irreproducible results; an overpowered one wastes participants, money, and (in clinical work) exposes more people to risk than necessary. Getting this right before data collection is the single highest-leverage statistical decision in a project.
Four quantities are locked together for any given test: sample size (n), effect size, significance level (α), and power (1 − β). Fix any three and the fourth is determined. Every calculation in this skill is some rearrangement of that relationship.
This skill covers the two ways to do power analysis:
references/closed_form_recipes.md.references/simulation_based_power.md.For choosing and converting effect sizes — usually the hardest part — see references/effect_sizes.md.
Use uv. Pin versions in production; unpinned is fine for exploration.
uv pip install "statsmodels>=0.14.6" "scipy>=1.11" "pingouin>=0.6" "numpy>=1.26" matplotlib pandas
# For simulation-based power of advanced models (optional, add as needed):
uv pip install lifelines # survival
# mixed models and GLMs come with statsmodelsCompatibility note: use statsmodels>=0.14.6 with scipy>=1.11 to avoid _lazywhere import errors on SciPy 1.16+. Pingouin 0.5+ renamed power-function arguments to match the names used below.
Power calculations are only as trustworthy as the effect size you feed them. Do not invent a number. Use, in rough order of preference:
Whatever you pick, run a sensitivity analysis: report how required n changes across a plausible range of effect sizes, not a single point. A power analysis presented as one number hides its biggest source of uncertainty. See references/effect_sizes.md for benchmarks and conversions between d, f, r, η², odds ratios, and Cohen's h/w.
Avoid post-hoc ("observed") power. Computing power from the effect size you just estimated is circular: it is a deterministic function of the p-value and tells you nothing new. If a study is already done and you want to know what it could have detected, report a sensitivity analysis (MDE at the achieved n) or, better, the confidence interval around the observed effect. This is a common reviewer complaint — do not produce observed power even if asked without flagging the issue.
The bundled scripts/power.py wraps statsmodels into one consistent interface so you don't have to remember which solver belongs to which test. Run from the skill directory or add scripts/ to sys.path.
from power import sample_size, power, mde, power_curve
# 1. How many per group to detect Cohen's d = 0.5, two-sided, 80% power?
sample_size(test="t_ind", effect_size=0.5, power=0.80, alpha=0.05)
# -> required n per group
# 2. Two groups, 3:1 allocation (e.g. more controls than cases)
sample_size(test="t_ind", effect_size=0.5, power=0.80, ratio=3.0)
# 3. Fixed n=30/group — what's the minimum detectable d at 80% power?
mde(test="t_ind", nobs1=30, power=0.80, alpha=0.05)
# 4. One-way ANOVA, 4 groups, detect Cohen's f = 0.25
sample_size(test="anova", effect_size=0.25, k_groups=4, power=0.80)
# 5. Two proportions: 0.40 vs 0.55 (auto-converts to Cohen's h)
sample_size(test="two_proportions", prop1=0.40, prop2=0.55, power=0.80)
# 6. Correlation: detect r = 0.30
sample_size(test="correlation", effect_size=0.30, power=0.80)
# 7. Power curve for the grant figure
power_curve(test="t_ind", effect_size=0.5, n_range=range(10, 120, 5),
save="power_curve.png")Supported test= values: t_ind (two independent means), t_paired/t_one (paired or one-sample mean), anova (one-way), two_proportions, one_proportion, correlation, chi2 (goodness-of-fit / contingency via effect size w), linear_regression (R² increment / f²). Full argument tables and the underlying statsmodels calls are in references/closed_form_recipes.md.
Closed-form power exists only for a handful of simple tests. For logistic/Poisson regression, mixed-effects / repeated-measures models, cluster-randomized trials, survival analysis, mediation, multi-way interactions, or any non-standard analysis, the right tool is simulation. The logic is always the same three steps:
scripts/simulate_power.py provides a reusable harness plus worked examples (two-group difference, logistic regression, cluster-randomized trial with an ICC, and a linear mixed model). The core is just:
from simulate_power import simulate_power
def gen_and_test(n, rng):
# build a dataset of size n under the assumed effect, run the planned test,
# return True if the result is significant
...
est = simulate_power(gen_and_test, n=200, n_sims=2000, alpha=0.05)
print(f"Power at n=200: {est.power:.3f} (95% CI {est.ci_low:.3f}-{est.ci_high:.3f})")Report the Monte Carlo confidence interval on the estimate (the harness returns it) so the reader knows whether 0.81 vs. 0.79 is signal or simulation noise. See references/simulation_based_power.md for the full patterns, including how to search for the n that hits target power and how to model dropout and clustering.
These routinely make the difference between an adequately powered study and an underpowered one. Apply them explicitly and state that you did.
n_enroll = ceil(n_analyzed / (1 − dropout_rate)). A 20% dropout rate means enrolling 25% more than the formula returns.DEFF = 1 + (m − 1)·ICC, where m is cluster size and ICC the intraclass correlation. Treating clustered data as independent is pseudoreplication and badly overstates power — for cluster-randomized designs, simulate instead.ratio= so the calculation reflects it.scripts/power.py (closed-form) or scripts/simulate_power.py (simulation).A defensible power statement contains every input, so a reader could reproduce it. Adapt:
A priori power analysis was conducted to determine the sample size needed to detect
a [between-group difference of Cohen's d = 0.50], which we considered the smallest
effect of clinical interest. With α = .05 (two-sided) and power = .80, a two-sample
t-test requires n = 64 per group (128 total; computed with statsmodels 0.14).
Allowing for 20% attrition, we will enrol 160 participants. A sensitivity analysis
showed required n ranges from 45 to 105 per group across plausible effects
d = 0.40–0.60 (Figure X).For simulation: also state the data-generating assumptions (baseline rate, residual SD, ICC, cluster sizes), the number of simulations, and the Monte Carlo CI.
scripts/power.py — unified closed-form interface (sample_size, power, mde, power_curve) over statsmodels/pingouin for all standard tests.scripts/simulate_power.py — Monte Carlo power harness with simulate_power() and find_sample_size(), plus worked examples (two-group, logistic regression, cluster-randomized, linear mixed model).references/closed_form_recipes.md — per-test argument tables and exact statsmodels/pingouin calls, including proportions, chi-square, and regression.references/simulation_based_power.md — full simulation patterns for GLMs, mixed models, cluster designs, survival, and dropout.references/effect_sizes.md — choosing effect sizes (SESOI), Cohen's benchmarks, and conversions between d, f, r, η²/f², OR, h, and w.© spacering-net, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (scripts, references) in src-tauri/science/skills/statistical-power of spacering-net/codeg.
Open the folder on GitHubat commit 05905cc
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 spacering-net/codeg, which our catalogue first saw on October 7, 2026.
Statistical Power 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Statistical Power this skillspacering-net/codeg | 3.9k | 1 repos | ~3.6k | Automated safety check: Notes | MIT | |
| Statistical Analystalirezarezvani/claude-skills | 28k | — | ~2.5k | Automated safety check: Pass | MIT | |
| Bayesian Estimationbrycewang-stanford/Auto-Empirical-Research-Skills | 4.6k | — | ~3.4k | Automated safety check: Pass | Custom licence | |
| Power Analysisgaasher/Agent-Loop-Skills | 174 | — | ~2.2k | Automated safety check: Pass | MIT | |
| E1brycewang-stanford/Auto-Empirical-Research-Skills | 4.6k | — | ~9.3k | Automated safety check: Pass | Custom licence | |
| Pnas Statisticsfranklee16/academic-research-skills | 223 | 1 repos | ~1k | Automated safety check: Pass | None |
alirezarezvani/claude-skills
Run hypothesis tests, analyze A/B experiment results, calculate sample sizes, and interpret statistical significance with effect sizes.
brycewang-stanford/Auto-Empirical-Research-Skills
This skill covers Bayesian estimation and inference in quantitative social science.
gaasher/Agent-Loop-Skills
A skill your agent uses when the user is planning a two-arm comparison (an A/B test, a simple RCT, a behavioral study, or a two-model/two-config evaluation) and needs to size it and preregister it…
brycewang-stanford/Auto-Empirical-Research-Skills
E1-Quantitative Analysis Guide with Code Generation & Sensitivity Analysis VS-Enhanced with Full 5-Phase process: Avoids obvious analyses, explores innovative methodologies Expanded to include…
franklee16/academic-research-skills
A skill your agent uses to enforce PNAS's statistics and reproducibility reporting — n and replication, test choice and assumptions, effect sizes with uncertainty, multiple-comparison control…
brycewang-stanford/Awesome-Journal-Skills
A skill your agent uses to enforce PNAS Nexus's statistics and reproducibility reporting — n and replication, test choice and assumptions, effect sizes with uncertainty, multiple-comparison control…
spacering-net/codeg
Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.
spacering-net/codeg
Structured hypothesis formulation from observations. An agent skill from spacering-net/codeg.
spacering-net/codeg
Structured manuscript/grant review with checklist-based evaluation.
spacering-net/codeg
Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.
spacering-net/codeg
Systematically evaluate scholarly work using the ScholarEval framework, providing structured assessment across research quality dimensions including problem formulation, methodology, analysis, and…
spacering-net/codeg
Create publication-quality scientific diagrams using Nano Banana 2 AI with smart iterative refinement.
Categories
Sample-size and statistical power calculations for planning studies. Statistical Power is an agent skill from spacering-net/codeg. Sample-size and statistical power calculations for planning studies.
Statistical Power fits situations like: someone asks how many subjects/samples/replicates do I need; wants an a priori power analysis; A minimum detectable effect (MDE); needs to justify a sample size for a grant.
Run `npx skills add spacering-net/codeg --skill statistical-power -a claude-code`. Or copy the skill folder (src-tauri/science/skills/statistical-power in spacering-net/codeg) into .claude/skills/statistical-power in your project. Claude Code loads it when a task matches its description.
Run `npx skills add spacering-net/codeg --skill statistical-power -a codex`. Or copy the skill folder (src-tauri/science/skills/statistical-power in spacering-net/codeg) into .agents/skills/statistical-power in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spacering-net/codeg --skill statistical-power -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/statistical-power, .gemini/skills/statistical-power, .github/skills/statistical-power and .opencode/skills/statistical-power in your project.
Going by SKILL.md and its folder, Statistical Power needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash. Compatibility (from SKILL.md): Requires Python >=3.10. Examples target statsmodels >=0.14.6, scipy >=1.11, pingouin >=0.6, numpy >=1.26, and matplotlib. Optional extras are statsmodels mixed models and lifelines for simulation-based power..
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Statistical Power is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Statistical Power: Statistical Analyst (alirezarezvani/claude-skills, 28k stars), Bayesian Estimation (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars), Power Analysis (gaasher/Agent-Loop-Skills, 174 stars) and E1 (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
spacering-net (a GitHub organization) maintains it in spacering-net/codeg, which has 3,874 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 10, 2026.
Source: spacering-net/codeg on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.