Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
asgard-ai-platform avatar

Grad Sem

  • 38 installs
  • 223 repo stars
  • Updated June 6, 2026
  • asgard-ai-platform/skills

grad-sem is a skill that applies Structural Equation Modeling to test hypothesized causal structures by combining measurement models (CFA) and structural path analysis.

About

This skill guides an agent to apply Structural Equation Modeling (SEM) to test a theoretical model. An analyst uses it to validate latent constructs, test mediation chains, and assess whether data are consistent with a hypothesized causal structure. It outputs a measurement model (CFA), model-fit indices, and structural path results.

  • Tests hypothesized causal structures by combining CFA and path analysis
  • Assesses model fit with CFI, TLI, RMSEA, and SRMR
  • Validates latent constructs and tests mediation/moderation paths

Grad Sem by the numbers

  • 38 all-time installs (skills.sh)
  • Ranked #1,016 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

grad-sem capabilities & compatibility

Capabilities
statistical modeling · data analysis · confirmatory factor analysis
Use cases
data analysis · research
From the docs

What grad-sem says it does

Structural Equation Modeling (SEM) simultaneously estimates measurement models (how observed indicators map to latent constructs) and structural models (directional paths among constructs).
SKILL.md
IRON LAW: SEM does NOT prove causation — it tests whether data is CONSISTENT with a hypothesized causal structure.
SKILL.md
npx skills add https://github.com/asgard-ai-platform/skills --skill grad-sem

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs38
repo stars223
Last updatedJune 6, 2026
Repositoryasgard-ai-platform/skills

What it does

Test a theoretical model with latent constructs and mediation paths and assess fit with CFI/TLI/RMSEA/SRMR.

Who is it for?

Testing full theoretical models with latent constructs and mediation using adequate samples

Skip if: Samples below 200, exploratory research with no a priori model, or simple all-observed regression

When should I use this skill?

A user asks whether variables form a causal chain, how to test a theoretical model, or whether a measurement model is valid

What you get

A SEM report with CFA measurement validity, model-fit indices, and structural path significance

  • CFA measurement model table
  • Model-fit index table
  • Structural path table and interpretation

By the numbers

  • 4-step methodology
  • sample rule N at least 200
  • 4 fit indices (CFI, TLI, RMSEA, SRMR)

Files

SKILL.mdMarkdownGitHub ↗

SEM 結構方程模型

Overview

Structural Equation Modeling (SEM) simultaneously estimates measurement models (how observed indicators map to latent constructs) and structural models (directional paths among constructs). It integrates confirmatory factor analysis with path analysis to test whether empirical data are consistent with a hypothesized theoretical structure.

When to Use

  • Testing a full theoretical model with latent constructs and directional paths
  • Evaluating mediation chains (X → M → Y) with multiple mediators
  • Assessing whether survey items adequately reflect their intended constructs (CFA)
  • Comparing alternative theoretical models on the same data

When NOT to Use

  • Sample size below 200 (or below 10 cases per estimated parameter)
  • Exploratory research with no a priori theoretical model
  • All variables are observed and model is a simple regression
  • Data are severely non-normal and you lack robust estimators

Assumptions

IRON LAW: SEM does NOT prove causation — it tests whether data is CONSISTENT
with a hypothesized causal structure. Good fit does NOT mean the model is
correct; it means the model cannot be rejected.

Key assumptions: 1. Correct model specification — omitted paths or constructs bias estimates 2. Multivariate normality for ML estimation (or use robust estimators) 3. Sufficiently large sample size (N ≥ 200 as rule of thumb) 4. No excessive multicollinearity among indicators

Methodology

Step 1 — Specify the Measurement Model

Define latent constructs and their observed indicators. Run CFA to confirm factor loadings, assess convergent validity (AVE ≥ 0.50), and discriminant validity.

Step 2 — Assess Measurement Model Fit

Evaluate fit indices: CFI ≥ 0.90, TLI ≥ 0.90, RMSEA ≤ 0.08, SRMR ≤ 0.08. Examine modification indices cautiously — only respecify with theoretical justification.

Step 3 — Specify and Estimate the Structural Model

Add directional paths among latent constructs based on theory. Estimate path coefficients and their significance. Compare nested models using chi-square difference test.

Step 4 — Report and Interpret

Report standardized path coefficients, R² for endogenous constructs, and overall fit. Discuss indirect effects if mediation is hypothesized. See references/estimation.md for mathematical notation and estimation details.

Output Format

## SEM Analysis: [Study Title]

### Measurement Model (CFA)
| Construct | Indicator | Std. Loading | AVE | CR |
|-----------|-----------|-------------|-----|-----|
| [name] | [item] | x.xx | x.xx | x.xx |

### Model Fit
| Index | Value | Threshold | Assessment |
|-------|-------|-----------|------------|
| CFI | x.xx | ≥ 0.90 | [pass/fail] |
| TLI | x.xx | ≥ 0.90 | [pass/fail] |
| RMSEA | x.xx | ≤ 0.08 | [pass/fail] |
| SRMR | x.xx | ≤ 0.08 | [pass/fail] |

### Structural Paths
| Path | Std. β | S.E. | p-value | Supported? |
|------|--------|------|---------|------------|
| X → M | x.xx | x.xx | x.xx | [Yes/No] |

### Key Findings
- [Interpretation of results]

### Limitations
- [Note any assumption violations]

Gotchas

  • Equivalent models with identical fit but different causal directions always exist — SEM cannot distinguish them
  • Modification indices tempt data-driven respecification that capitalizes on chance
  • Parceling items masks misspecification in the measurement model
  • Chi-square test is overly sensitive with N > 500; rely on approximate fit indices
  • Non-normal data require MLR or bootstrapping, not default ML
  • Reporting only significant paths without the full hypothesized model is selective reporting

References

  • Kline, R. B. (2016). Principles and Practice of Structural Equation Modeling (4th ed.). Guilford Press.
  • Hu, L., & Bentler, P. M. (1999). Cutoff criteria for fit indexes. Structural Equation Modeling, 6(1), 1-55.
  • Anderson, J. C., & Gerbing, D. W. (1988). Structural equation modeling in practice. Psychological Bulletin, 103(3), 411-423.

Related skills

FAQ

Does SEM prove causation?

No; SEM tests whether data are consistent with a hypothesized causal structure, and good fit means the model cannot be rejected, not that it is correct.

What fit indices does SEM use?

CFI at least 0.90, TLI at least 0.90, RMSEA at most 0.08, and SRMR at most 0.08, typically with N at least 200.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.