Statistical Analysis
spacering-net/codeg
Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.
Guided statistical analysis for test selection, assumption checks, power analysis, and APA-style reporting.
$ npx skills add aipoch/medical-research-skills --skill statistical-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install aipoch/medical-research-skills statistical-analysis --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/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Data Analysis/statistical-analysis' .claude/skills/statistical-analysis && 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-analysis" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysis into .claude/skills/statistical-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-analysis", 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/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysisType 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 aipoch/medical-research-skills --skill statistical-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install aipoch/medical-research-skills statistical-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/'scientific-skills/Data Analysis/statistical-analysis' .agents/skills/statistical-analysis && 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-analysis" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysis into .agents/skills/statistical-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-analysis", 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 aipoch/medical-research-skills --skill statistical-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install aipoch/medical-research-skills statistical-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/'scientific-skills/Data Analysis/statistical-analysis' .cursor/skills/statistical-analysis && 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-analysis" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysis into .cursor/skills/statistical-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-analysis", 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/aipoch/medical-research-skills.git --path 'scientific-skills/Data Analysis/statistical-analysis'--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 aipoch/medical-research-skills --skill statistical-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install aipoch/medical-research-skills statistical-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/'scientific-skills/Data Analysis/statistical-analysis' .gemini/skills/statistical-analysis && 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-analysis" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysis into .gemini/skills/statistical-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-analysis", 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 aipoch/medical-research-skills statistical-analysisInstalls 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 aipoch/medical-research-skills --skill statistical-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/'scientific-skills/Data Analysis/statistical-analysis' .github/skills/statistical-analysis && 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-analysis" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysis into .github/skills/statistical-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-analysis", 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 aipoch/medical-research-skills --skill statistical-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install aipoch/medical-research-skills statistical-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/'scientific-skills/Data Analysis/statistical-analysis' .opencode/skills/statistical-analysis && 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-analysis" agent skill from https://github.com/aipoch/medical-research-skills/tree/main/scientific-skills/Data%20Analysis/statistical-analysis into .opencode/skills/statistical-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statistical-analysis", 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-analysisGuided statistical analysis for test selection, assumption checks, power analysis, and APA-style reporting.
Statistical Analysis is an agent skill from aipoch/medical-research-skills. Guided statistical analysis for test selection, assumption checks, power analysis, and APA-style reporting. Use when you need to choose an appropriate statistical test for your data and produce publication-ready results (including effect sizes and diagnostics).
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `POLISH_CHANGELOG.md`, `eval_report_statistical-analysis_result.json` and `references/assumptions_and_diagnostics.md`).
It sits in Data & Analytics, covering Statistics and Experimental design. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.
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.
Ships 1 file in scripts/ (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Statistical Analysis loads about 2.8k tokens when it runs, and up to ~20k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 1,023 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 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); the scripts in this folder are not scanned.
The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 1,023 words, ~2,805 tokens.
.claude/skills/statistical-analysis/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.Use this skill when you need to:
For programming model-specific workflows (especially regression variants and custom diagnostics), prefer statsmodels directly; this skill focuses on guided selection, checks, interpretation, and reporting.
references/test_selection_guide.md).scripts/assumption_checks.py (see references/assumptions_and_diagnostics.md).references/bayesian_statistics.md).references/effect_sizes_and_power.md).references/reporting_standards.md).Python (recommended 3.10+) with:
numpy>=1.24pandas>=2.0scipy>=1.10statsmodels>=0.14pingouin>=0.5matplotlib>=3.7pymc>=5.0 (Bayesian workflows)arviz>=0.16 (Bayesian diagnostics/plots)The example below is designed to be runnable end-to-end: it generates synthetic data, checks assumptions, runs an independent-samples t-test with effect size, performs power analysis, and prints an APA-style result string.
import numpy as np
import pandas as pd
import pingouin as pg
from statsmodels.stats.power import tt_ind_solve_power
# If your repo provides this module, use it; otherwise comment it out.
from scripts.assumption_checks import comprehensive_assumption_check
# ----------------------------
# 1) Create example dataset
# ----------------------------
rng = np.random.default_rng(7)
n_a, n_b = 50, 52
group_a = rng.normal(loc=75, scale=9, size=n_a)
group_b = rng.normal(loc=69, scale=9, size=n_b)
df = pd.DataFrame({
"score": np.r_[group_a, group_b],
"group": ["A"] * n_a + ["B"] * n_b
})
# ----------------------------
# 2) Assumption checks
# ----------------------------
assump = comprehensive_assumption_check(
data=df,
value_col="score",
group_col="group",
alpha=0.05
)
print("Assumption check summary:")
print(assump["summary"] if "summary" in assump else assump)
# ----------------------------
# 3) Run test + effect size
# ----------------------------
res = pg.ttest(group_a, group_b, correction="auto") # Welch if needed
t_stat = float(res["T"].iloc[0])
dfree = float(res["dof"].iloc[0])
pval = float(res["p-val"].iloc[0])
d = float(res["cohen-d"].iloc[0])
ci_low, ci_high = res["CI95%"].iloc[0]
# ----------------------------
# 4) Power analysis (planning)
# ----------------------------
n_required = tt_ind_solve_power(
effect_size=0.5, alpha=0.05, power=0.80, ratio=1.0, alternative="two-sided"
)
# ----------------------------
# 5) APA-style reporting string
# ----------------------------
m_a, sd_a = group_a.mean(), group_a.std(ddof=1)
m_b, sd_b = group_b.mean(), group_b.std(ddof=1)
apa = (
f"Group A (n = {n_a}, M = {m_a:.2f}, SD = {sd_a:.2f}) and "
f"Group B (n = {n_b}, M = {m_b:.2f}, SD = {sd_b:.2f}) differed, "
f"t({dfree:.0f}) = {t_stat:.2f}, p = {pval:.3f}, d = {d:.2f}, "
f"95% CI [{ci_low:.2f}, {ci_high:.2f}]."
)
print("\nAPA-style result:")
print(apa)
print(f"\nPlanning note: to detect d = 0.50 with 80% power, "
f"required n per group ≈ {n_required:.0f}.")Use references/test_selection_guide.md as the primary decision aid. The selection is typically driven by:
Common mappings:
The automated workflow in scripts/assumption_checks.py (referenced in the original documentation) is expected to cover:
Key parameter:
alpha (default commonly 0.05): decision threshold for assumption tests.Recommended remedies (see references/assumptions_and_diagnostics.md):
Effect sizes should be reported alongside inferential results (see references/effect_sizes_and_power.md):
Always prefer confidence intervals (frequentist) or credible intervals (Bayesian) to communicate precision.
Implemented via statsmodels.stats.power:
n given target effect size, alpha, and desired power.n, alpha, and desired power.Avoid “post-hoc power” computed from observed p-values; use sensitivity analysis instead.
Use references/reporting_standards.md to ensure inclusion of:
For Bayesian reporting (see references/bayesian_statistics.md), include:
| Field | Required | Format/Source | Example | If Missing |
|---|---|---|---|---|
| User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide |
| Primary input material | Depends on task | Text, file path, ID, table, or literature | PMID, PDF, CSV, DOCX, keywords, etc. | Specify which material type is missing |
| Output preference | No | Text | Language, format, target journal, template | Use skill default format |
This skill accepts requests that match the documented purpose of statistical-analysis and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
statistical-analysisonly handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
© aipoch, 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 7 other files (scripts, references) in scientific-skills/Data Analysis/statistical-analysis of aipoch/medical-research-skills.
Open the folder on GitHubat commit 686e09d
Statistical Analysis 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 Analysis this skillaipoch/medical-research-skills | 2k | — | ~2.8k | Automated safety check: Pass | MIT | |
| Statistical Analysisspacering-net/codeg | 3.8k | 4 repos | ~5k | Automated safety check: Pass | MIT | |
| Statistical Powerspacering-net/codeg | 3.8k | 2 repos | ~3.6k | Automated safety check: Notes | MIT | |
| Data Scientistdavila7/claude-code-templates | 32k | 9 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Statistical Analystalirezarezvani/claude-skills | 28k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Experimentation Analyticsrampstackco/claude-skills | 940 | 1 repos | ~8.9k | Automated safety check: Pass | MIT |
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
Sample-size and statistical power calculations for planning studies.
davila7/claude-code-templates
Expert data scientist for advanced analytics, machine learning, and statistical modeling.
alirezarezvani/claude-skills
Run hypothesis tests, analyze A/B experiment results, calculate sample sizes, and interpret statistical significance with effect sizes.
rampstackco/claude-skills
How to read experiment results without fooling yourself. An agent skill from rampstackco/claude-skills.
poemswe/co-researcher
You must use this when selecting statistical tests, interpreting effect sizes, or conducting power analysis.
aipoch/medical-research-skills
Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…
aipoch/medical-research-skills
Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.
aipoch/medical-research-skills
Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.
aipoch/medical-research-skills
A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.
aipoch/medical-research-skills
Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…
aipoch/medical-research-skills
Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.
Categories
Guided statistical analysis for test selection, assumption checks, power analysis, and APA-style reporting. Statistical Analysis is an agent skill from aipoch/medical-research-skills. Guided statistical analysis for test selection, assumption checks, power analysis, and APA-style reporting.
Statistical Analysis fits situations like: tasks that involve Statistics; tasks that involve Experimental design.
Run `npx skills add aipoch/medical-research-skills --skill statistical-analysis -a claude-code`. Or copy the skill folder (scientific-skills/Data Analysis/statistical-analysis in aipoch/medical-research-skills) into .claude/skills/statistical-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add aipoch/medical-research-skills --skill statistical-analysis -a codex`. Or copy the skill folder (scientific-skills/Data Analysis/statistical-analysis in aipoch/medical-research-skills) into .agents/skills/statistical-analysis 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 aipoch/medical-research-skills --skill statistical-analysis -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-analysis, .gemini/skills/statistical-analysis, .github/skills/statistical-analysis and .opencode/skills/statistical-analysis in your project.
Going by SKILL.md and its folder, Statistical Analysis needs Python for the scripts in its folder. Our summary lists: Python 3.
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.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Statistical Analysis is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k 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 17k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Statistical Analysis: Statistical Analysis (spacering-net/codeg, 3.8k stars), Statistical Power (spacering-net/codeg, 3.8k stars), Data Scientist (davila7/claude-code-templates, 32k stars) and Statistical Analyst (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,974 GitHub stars. The repository holds 567 skills in this directory. The repository was last updated on September 17, 2026.
Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.