norman-bury/research-writing-skill/statistical-analysis
Claude Code and agent skill by norman-bury/research-writing-skill
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when planning or reporting statistical analysis - provides test selection, execution code, and APA format guidelines
Install
npx vskill@latest install norman-bury/research-writing-skill/statistical-analysisSKILL.md
The same SKILL.md was published earlier as norman-bury/research-writing-skill/statistical-analysis.
统计分析指南
本技能提供学术论文中统计分析的选择、执行和报告指南。
一、统计检验选择
比较两组
| 数据特征 | 推荐检验 | |
|---|---|---|
| 独立、连续、正态 | 独立样本t检验 | |
| 独立、连续、非正态 | Mann-Whitney U检验 | |
| 配对、连续、正态 | 配对样本t检验 | |
| 配对、连续、非正态 | Wilcoxon符号秩检验 | |
| 二分类结果 | 卡方检验或Fisher精确检验 |
比较三组及以上
| 数据特征 | 推荐检验 | |
|---|---|---|
| 独立、连续、正态 | 单因素方差分析 | |
| 独立、连续、非正态 | Kruskal-Wallis检验 | |
| 配对、连续、正态 | 重复测量方差分析 | |
| 配对、连续、非正态 | Friedman检验 |
关系分析
| 分析目标 | 推荐方法 | |
|---|---|---|
| 两个连续变量关系 | Pearson相关(正态)或Spearman相关(非正态) | |
| 连续结果与预测变量 | 线性回归 | |
| 二分类结果与预测变量 | 逻辑回归 |
二、假设检验
正态性检验
方差齐性检验
三、效应量
常用效应量参考
| 检验 | 效应量 | 小 | 中 | 大 | |
|---|---|---|---|---|---|
| t检验 | Cohen's d | 0.20 | 0.50 | 0.80 | |
| ANOVA | η²_p | 0.01 | 0.06 | 0.14 | |
| 相关 | r | 0.10 | 0.30 | 0.50 | |
| 回归 | R² | 0.02 | 0.13 | 0.26 |
Python计算效应量
四、APA格式报告
独立样本t检验
单因素方差分析
多元回归
五、常见统计陷阱
<HARD-GATE> 必须避免以下错误: </HARD-GATE>
- P-hacking:不要测试多种方式直到出现显著性
- HARKing:不要将探索性发现呈现为验证性
- 忽视假设:检查并报告违反情况
- 混淆显著性与重要性:p < .05 ≠ 有意义的效应
- 不报告效应量:对解释至关重要
- 挑选结果:报告所有计划的分析
- 多重比较:适当时校正族错误率
- 过度解释非显著结果:无证据 ≠ 无效应的证据
六、Python示例
完整t检验流程
七、统计分析检查清单
- [ ] 定义研究问题和假设
- [ ] 确定适当的统计检验
- [ ] 进行功效分析确定样本量
- [ ] 检查缺失数据和异常值
- [ ] 验证假设(正态性、方差齐性)
- [ ] 运行主要分析
- [ ] 计算效应量和置信区间
- [ ] 进行事后检验(如需要)
- [ ] 按APA格式撰写结果
八、推荐资源
Python库
- scipy.stats:核心统计检验
- statsmodels:高级回归和诊断
- pingouin:用户友好的统计检验,带效应量
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/statistical-analysis/SKILL.md
Popularity
- Repository stars
- 3,292
- Repository forks
- 216
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/norman-bury/research-writing-skill/statistical-analysis)