power-analysis

仓库创建 2026年2月7日最近提交 1 个月前SkillHot 收录 20 天前
▸ 精选理由

支持簇层、非等分配与模拟选项,适合严谨的实验设计与注册

这个 Skill 做什么

计算统计功效、所需样本量与最小可检测效应,并输出预注册用的功效段落

帮你算出试验的 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.

研究检索统计功效样本量计算模拟分析通用
1.4k
Stars
2.8k
Forks
40
仓库内 Skill
+59
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/power-analysis/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/power-analysis/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有