structural-modeling

Estimate and debug structural econometric models with NFXP and MPEC workflows.

11|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/James-Traina/compound-science --skill structural-modeling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: structural-modeling
Source: https://github.com/James-Traina/compound-science/tree/main/skills/structural-modeling
Command: npx skills add https://github.com/James-Traina/compound-science --skill structural-modeling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a guided, end-to-end workflow for specifying, estimating, and debugging structural econometric models, translating economic theory into executable estimation pipelines.

Core Features & Use Cases

  • Step-by-step model specification: define agents, information, timing, payoffs, and equilibrium concepts before coding.
  • End-to-end estimation templates: inner-loop contraction mapping (NFXP) and single-step MPEC formulations, plus BLP/CCP paradigms for differentiable models.
  • Diagnostics and robustness: convergence checks, sensitivity analysis, and standard error computation to ensure reliable inference.

Quick Start

Define your model primitives (agents, information, timing, payoffs) in a model_spec file, then run an NFXP or MPEC estimation workflow on a sample dataset.

Frequently Asked Questions about structural-modeling

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

FAQPage Schema
How do I estimate structural econometric models using NFXP or MPEC?

Structural econometric estimation uses NFXP inner-loop contraction mapping or single-step MPEC formulations to translate model primitives into executable pipelines. This Skill provides end-to-end templates for both approaches, allowing you to run estimations on sample datasets.

What is the best way to debug convergence issues in BLP or CCP estimation?

Debugging BLP or CCP estimation requires running diagnostic checks like convergence verification and sensitivity analysis. This workflow provides structured diagnostic steps to isolate failures during the inner and outer loop estimation of dynamic structural models.

How do I derive moment conditions for structural econometric models?

Deriving moment conditions for structural econometric models requires defining agents, information, timing, payoffs, and equilibrium concepts before coding. This workflow provides a step-by-step model specification process to formalize these primitives into moment conditions.

Can I use this workflow for Rust dynamic discrete choice and auction models?

Yes, this workflow explicitly supports structural estimation and debugging for Rust dynamic discrete choice, BLP, CCP, and auction models. It applies model specification, moment condition derivation, and diagnostic checks across these specific econometric paradigms.

How do I compute standard errors after structural estimation?

Computing standard errors after structural estimation is handled through the workflow's diagnostics and robustness phase. It performs sensitivity analysis and standard error computation to ensure reliable inference after your NFXP or MPEC estimation converges.