statistical-analysis

Recommend statistical tests, provide Python code, and format results in APA style.

Updated May 15, 2026
One-click install
npx skills add https://github.com/lth0/codexSkill --skill statistical-analysis-lth0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-analysis
Source: https://github.com/lth0/codexSkill/tree/main/skills/agents/research-writing/statistical-analysis
Command: npx skills add https://github.com/lth0/codexSkill --skill statistical-analysis-lth0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

它帮助你在论文写作中把研究问题转化为合适的统计检验,并把分析结果用规范的 APA 格式清晰呈现。

Core Features & Use Cases

  • 检验选择与方案制定:根据数据类型(连续/二分类)、样本关系(独立/配对)以及分布假设(正态/非正态)推荐对应检验方法,并覆盖两组比较、多组比较与相关/回归。
  • 执行代码与效应量计算:提供常见假设检验(如正态性、方差齐性)示例,并给出计算效应量的思路与 Python 实现示例(如 Cohen’s d、偏η²、R²)。
  • APA 报告模板:针对 t 检验、单因素方差分析与多元回归提供可直接改写的结果表述格式。
  • Use Case:例如你要在论文中比较两组平均分差异,并在结果部分报告统计量、p 值、效应量与置信区间;或需要为多组实验条件完成 ANOVA 以及事后比较的 APA 描述。

Quick Start

请结合你的研究设计(独立/配对、分组数量、因变量类型、是否满足正态与方差齐性)以及样本数据或汇总统计信息,让我选择最合适的统计检验、给出可运行的 Python 分析代码,并生成一段符合 APA 格式的结果报告。

Frequently Asked Questions about statistical-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right statistical test for my research design?

To choose the right statistical test, evaluate your data type, sample relationship, and distribution assumptions. This skill recommends appropriate tests for group comparisons and regression by matching your research design characteristics to suitable hypothesis testing methods.

How do I calculate effect sizes like Cohen's d in Python?

Calculating effect sizes like Cohen's d, partial eta squared, or R-squared in Python involves applying specific formulas to your summary statistics. This skill provides Python execution examples and computational logic for effect size calculations across various statistical tests.

What statistical test should I use for non-normal data distributions?

For non-normal data distributions, you should use non-parametric statistical tests instead of parametric ones. This skill selects appropriate tests by analyzing whether your data meets normality and variance homogeneity assumptions before recommending specific comparison or regression methods.

How do I check normality and variance homogeneity assumptions before hypothesis testing?

Checking normality and variance homogeneity assumptions involves running specific preliminary tests on your dataset. This skill provides example Python execution code for common assumption checks to validate your data before proceeding with the main statistical analysis.

Can I generate Python code for logistic regression analysis with APA formatted results?

You can generate Python code for logistic regression analysis with APA formatted results by providing your research design and summary statistics. This skill covers linear and logistic regression scenarios, supplying runnable code and publication-ready result text.