Factor Analysis Expert logo

Factor Analysis Expert

Community
ptreezh
factor-analysis-expert

Factor Analysis expert. Provides dimensionality reduction, factor extraction, rotation methods, reliability testing, and construct validation. Suitable for psychometric research, scale development, and multivariate analysis.

Overview

Publisherptreezh
Repositorysscisubagent-skills
Skill namefactor-analysis-expert
Stars
45
Forks
7
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ptreezh on GitHub. Read the source before you install it.

Installation

Install the Factor Analysis Expert AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ptreezh/sscisubagent-skills/tree/main/skills/factor-analysis-expert
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ptreezh/sscisubagent-skills.git /tmp/sscisubagent-skills
mkdir -p .claude/skills
cp -r /tmp/sscisubagent-skills/skills/factor-analysis-expert .claude/skills/factor-analysis-expert
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Factor Analysis Expert in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Factor Analysis Expert on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Factor Analysis Expert is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

---|-----|-----| | 目的 | 探索因子结构 | 验证预设模型 | | 因子数量 | 数据驱动 | 理论驱动 | | 因子载荷 | 自由估计 | 约束估计 | | 模型拟合 | 无 | 有拟合指标 | | 应用阶段 | 量表开发早期 | 量表验证阶段 |

分析流程

步骤1: 数据准备
├── 样本量检查 (N ≥ 5k, 推荐 N ≥ 10k)
├── 缺失值处理
└── 异常值检测
    ↓
步骤2: 适用性检验
├── KMO检验 (≥ 0.60)
├── Bartlett球形检验 (p < .05)
└── 相关矩阵检验
    ↓
步骤3: 因子数确定
├── 特征值 > 1 (Kaiser准则)
├── 碎石图
├── 平行分析
└── 理论考量
    ↓
步骤4: 因子提取
├── 主成分分析 (PCA)
├── 主轴因子法 (PAF)
├── 最大似然法 (ML)
└── alpha因子分析
    ↓
步骤5: 因子旋转
├── 正交旋转 (Varimax, Quartimax)
├── 斜交旋转 (Promax, Oblimin)
└── 旋转选择依据
    ↓
步骤6: 结果解释
├── 因子载荷解释
├── 共同度检验
├── 因子命名
└── 内部一致性检验
    ↓
步骤7: 报告撰写

因子提取方法

方法适用场景特点
PCA数据降维提取总方差
PAF共同因素分析提取共同方差
ML正态分布数据可做统计检验
Alpha信度优化最大化alpha系数
Image小样本减少偏差

因子旋转策略

正交旋转

  • Varimax: 简化载荷,最常用
  • Quartimax: 简化因子
  • Equamax: 折中方案

斜交旋转

  • Promax: 快速斜交
  • Oblimin: 灵活斜交
  • Geomin: 适合复杂结构

选择依据

因子间相关理论预期?
├── 是 → 斜交旋转
└── 否 → 正交旋转
    
研究目的?
├── 数据简化 → PCA + Varimax
├── 构念开发 → PAF + Oblimin
└── 理论验证 → CFA

拟合指标(CFA)

指标可接受良好说明
χ²/df< 5< 3受样本量影响大
CFI≥ 0.90≥ 0.95比较拟合指数
TLI≥ 0.90≥ 0.95Tucker-Lewis指数
RMSEA≤ 0.08≤ 0.06近似误差均方根
SRMR≤ 0.10≤ 0.08标准化残差均方根

信效度评估

信度

指标公式可接受值
Cronbach's αα = kr/(1+(k-1)r̄)≥ 0.70
组合信度(CR)CR = (Σλ)²/[(Σλ)²+Σ(1-λ²)]≥ 0.70
AVEAVE = Σλ²/k≥ 0.50

效度

  • 内容效度: 专家评审
  • 收敛效度: AVE ≥ 0.50, 载荷 ≥ 0.50
  • 区分效度: √AVE > 因子间相关

使用示例

用户: 分析这个问卷的因子结构

AI: 我将进行探索性因子分析:

## 适用性检验
- KMO = 0.85 (良好)
- Bartlett χ² = 1234.56, p < .001 (适合)

## 因子数确定
- 特征值 > 1: 3个因子
- 平行分析: 建议3个因子
- 碎石图: 转折点在第4个因子

## 因子提取与旋转
采用主轴因子法 + Oblimin斜交旋转

## 结果
因子1 (解释方差32%): 项目1, 2, 3 → 命名为"工作满意度"
因子2 (解释方差24%): 项目4, 5, 6 → 命名为"组织承诺"  
因子3 (解释方差18%): 项目7, 8 → 命名为"离职倾向"

## 信度检验
α₁ = 0.87, α₂ = 0.82, α₃ = 0.79 (均可接受)

🚫 绝对禁止原则

使用前必读:以下原则是不可逾越的红线,违反将导致因子分析结论失效。

  1. 禁止适用性不足仍强行分析 — KMO < 0.60 或 Bartlett检验不显著(p > .05)时继续进行因子分析,导致因子结构不可靠
  2. 禁止预设不合理的因子数 — 盲目使用Kaiser准则(特征值>1)而不结合碎石图和平行分析,导致过度或不足提取
  3. 禁止忽视因子载荷解释标准 — 将载荷<0.40的条目纳入因子,或不报告共同度而直接解释因子
  4. 禁止混淆EFA与CFA — 将探索性因子分析的结果直接当作验证性结论,忽略两种方法的本质区别
  5. 禁止忽视旋转选择的理论依据 — 因子间理论上相关却使用正交旋转(Varimax),或反之
  6. 禁止跳过信效度完整评估 — 仅报告因子载荷,不检验Cronbach's α、组合信度(CR)、收敛效度(AVE)、区分效度

✅ 质量标准

完整性

  • 必做项清单完成度 ≥ 90%
  • 适用性检验报告完整(KMO、Bartlett)
  • 因子提取与旋转有据可查

方法论

  • 理论框架与数据一致性 ≥ 90%
  • 因子数确定有多种方法交叉验证
  • 分析步骤可复现性高

深度

  • 核心维度覆盖 ≥ 80%
  • 信效度完整评估(α、CR、AVE、√AVE)
  • 结果解释有理论支撑

🖥️ Python 工具

工具链

#工具名称功能描述
1efa_analyzer.py探索性因子分析,支持主成分分析、主轴因子法、KMO检验、Bartlett检验、平行分析
2rotation_selector.py旋转策略选择,支持Varimax/Promax/Oblimin正交与斜交旋转
3cfa_validator.py验证性因子分析,支持拟合指标计算(χ²/df、CFI、TLI、RMSEA、SRMR)
4reliability_calculator.py信效度计算,支持Cronbach's α、组合信度(CR)、AVE、区分效度检验

CLI用法

bash
python tools/efa_analyzer.py --input data.csv --method paf --rotation oblimin --output factors.json
python tools/cfa_validator.py --input model.json --data data.csv --output fit_indices.json
python tools/reliability_calculator.py --input coded_data.csv --output reliability.json

参考文献

  1. Tabachnick, B.G., & Fidell, L.S. (2019). Using Multivariate Statistics. 7th ed.
  2. Hair, J.F., et al. (2019). Multivariate Data Analysis. 8th ed.
  3. Brown, T.A. (2015). Confirmatory Factor Analysis for Applied Research. 2nd ed.
  4. Fabrigar, L.R., et al. (1999). Evaluating the use of EFA. Psychological Methods, 4, 272-299.

技能版本: 5.0.0
方法论标准: Tabachnick & Fidell (2019)
创建时间: 2026-03-15

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Factor Analysis Expert AI skill do?

Factor Analysis expert. Provides dimensionality reduction, factor extraction, rotation methods, reliability testing, and construct validation. Suitable for psychometric research, scale development, and multivariate analysis.

Why use Factor Analysis Expert on TypingMind?

Because you install it once and use it with any model. Factor Analysis Expert is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Factor Analysis Expert in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ptreezh/sscisubagent-skills/tree/main/skills/factor-analysis-expert. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Factor Analysis Expert?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Factor Analysis Expert?

As many as you like. As long as a model supports skills, you can use Factor Analysis Expert with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Factor Analysis Expert AI skill free?

Yes. It is published on GitHub by ptreezh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇