power-analysis
支持簇层、非等分配与模拟选项,适合严谨的实验设计与注册
计算统计功效、所需样本量与最小可检测效应,并输出预注册用的功效段落
帮你算出试验的 power、所需样本量和最小可检测效应(MDE),并生成一段能直接贴到 preregistration 的功效说明文字。支持两臂 RCT(含聚类/ICC 与不等分配)、多臂修正,也能用模拟法处理 DiD、IV、面板等非标准设计。用在想知道样本够不够、评估能检测到多大效应或要写功效段落时,很快给出表格和曲线。
▸ 展开 SKILL.md 英文原文
Compute statistical power, required sample size, and minimum detectable effect (MDE) for a study design, then write a registry-ready power section. Handles two-arm RCTs (with clustering / ICC and unequal allocation), multiple-arm corrections, and a simulation-based power option for non-standard designs (DiD/event-study, IV, panel). Use when user says "power analysis", "power calculation", "MDE", "minimum detectable effect", "how big a sample do I need", "is my study powered", "power for an RCT", or when /preregister needs a power section for an experiment. Produces a power/MDE table, power curves, and a methods paragraph to paste into a preregistration.
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/power-analysis/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/power-analysis/SKILL.md"# `/power-analysis` — Power / MDE for study design
Compute the three interlocking quantities of an ex-ante design calculation — **power**, **required N**, and **minimum detectable effect (MDE)** — and emit a power section the user can paste straight into a preregistration. Analytical for standard designs; simulation-based (reusing the `/simulation-study` harness pattern) for non-standard ones.
**Core principle:** a power calculation is a *design-time commitment made before the data exist*. Fix any two of {effect size, N, power} and solve for the third; never back out a "power" number from a realised estimate (that is post-hoc power, and it is uninformative — see "What this skill does NOT d