Power Calculations
Power, minimum detectable effect (MDE) and sample-size calculations in R for randomized experiments and survey experiments - two-arm and multi-arm designs with a shared control, ANCOVA vs change-score vs post-only, binary outcomes, within-subject differences, interactions/heterogeneity, clustered assignment, attrition and exclusions, and multiple-testing adjustment (per-test, Bonferroni bound, Holm/Romano-Wolf). Combines closed-form MDEs with Monte Carlo simulation of the exact pre-registered regression, including size checks. Use whenever the user asks for power calculations, an MDE table, "h
Install
npx skills add dariia-m/my_claude_skills --skill power-calculationsgit clone --depth 1 https://github.com/dariia-m/my_claude_skills.git /tmp/my_claude_skills
mkdir -p ~/.claude/skills
cp -r /tmp/my_claude_skills/power-calculations ~/.claude/skills/power-calculationsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Power calculations (R)
Reusable tools live in `scripts/power_tools.R`; a fill-in-the-parameters script is
`scripts/power_template.R`; formulas, rules of thumb and worked reference numbers are in
`references/formulas.md`; `tests/test_power_tools.R` checks the tools (run it after
editing them).
Always write R (tidyverse style), run as a standalone script with `Rscript <file>`, never
inline R. Source the tools with
`source("~/.claude/skills/power-calculations/scripts/power_tools.R")` or copy them into
the project's code folder.
## Workflow
### 1. Pin down the design before computing anything
Get each of these from the user, the PAP, the survey file or a pilot. If one is missing,
ask; do not invent it:
- Arms and allocation (shared control? unequal ratios?), N randomized per arm.
- The pre-registered estimating equation for each primary hypothesis: outcome,
baseline control or change score, other controls, SE type (HC1, clustered).
- Outcome type and scale: continuous (SD known or z-scored?), binary (base rate),
within-subject difference, index.
- Correlation between baseline and outcome (rho), if the design uses a baseline.
- Attrition (panels: by wave) and pre-registered exclusions (attention, speeding).
- Clustering: cluster size and ICC.
- Hypothesis family for multiple testing (how many tests, which adjustment).
- alpha, sidedness, target power (default 0.05, two-sided, 0.80).
- Benchmark effect sizes from prior studies. Per the user's rules, ask the user toDetails
- Skill name
power-calculations- Repository
- dariia-m/my_claude_skills
- Path
power-calculations/SKILL.md- License
- MIT
- Repo updated
- 16 November 2026
FAQ
What does the Power Calculations skill do?
Power, minimum detectable effect (MDE) and sample-size calculations in R for randomized experiments and survey experiments - two-arm and multi-arm designs with a shared control, ANCOVA vs change-score vs post-only, binary outcomes, within-subject differences, interactions/heterogeneity, clustered assignment, attrition and exclusions, and multiple-testing adjustment (per-test, Bonferroni bound, Holm/Romano-Wolf). Combines closed-form MDEs with Monte Carlo simulation of the exact pre-registered regression, including size checks. Use whenever the user asks for power calculations, an MDE table, "h
How do I install the Power Calculations skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add dariia-m/my_claude_skills --skill power-calculations. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Power Calculations popular?
It lives in dariia-m/my_claude_skills, which has 36 GitHub stars and 11 forks.
Related skills
Academic Paper Verify
36dariia-m/my_claude_skills
Thoroughly verify all code, tables, figures, modeling decisions, and quantitative claims in an academic paper against its source R scripts and output files. Use this skill whenever you need to audit, replicate, or verify an academic research paper - including cross-checking LaTeX tables against R output, validating econometric modeling choices, ensuring sample sizes are consistent, building a verification manifest, and running automated replication tests. Trigger this skill for any mention of: paper verification, replication check, table audit, code-paper consistency, reproducing results, veri
Academic Writing
36dariia-m/my_claude_skills
Activate when the user is drafting any academic economics content from scratch (e.g., outlines, abstracts, introductions, data/methods/identification sections, results narratives, conclusions, referee responses, table/figure captions) and needs economics-specific structure, phrasing options, and quality checks to produce publication-ready prose.
Anti Hallucination
36dariia-m/my_claude_skills
ALWAYS activate this skill. Apply these rules to every task regardless of domain. This skill governs how Claude Code verifies information, writes code, references documentation, and avoids fabricating functions, arguments, APIs, file paths, data structures, or facts. These rules override any inclination to guess.
Prove It
62ElliotJLT/Claude-Skill-Potions
Before declaring any task complete, actually verify the outcome. Run the code. Test the fix. Check the output. Claude's training optimizes for plausible-looking output, not verified-correct output. This skill forces the verification step that doesn't come naturally. No victory laps without proof.
Pipeline
62ElliotJLT/Claude-Skill-Potions
Orchestration pattern for sequential, dependent tasks. When work must flow through stages where each stage depends on the previous (design → implement → test → review), structure as a pipeline with explicit handoffs. Each stage completes before the next begins.
Test Driven Development (TDD)
43obra/clank
Write the test first, watch it fail, write minimal code to pass
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.