Logo Model Selection

Model Selection

Tổ chức
bis-med-it
model-selection

Recommends appropriate econometric models and specifications based on the user's research question, data availability, and analytical objectives. The orchestrator invokes this at the start of a Mode C analysis (and as a sanity check in Mode A), before data retrieval or estimation. Use whenever the user describes a research question, policy problem, or analytical goal without specifying a model, or when they ask "what model should I use", "how should I analyse this", "what's the best approach for", or describe a macro/financial question they want to investigate. Also triggers when the user has chosen a model but the skill should validate that choice against the research question.

Tổng quan

Nhà phát hànhbis-med-it
Kho mãmarco-BIS
Tên kỹ năngmodel-selection
Sao
28
Bản fork
6
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được bis-med-it công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Model Selection trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/bis-med-it/marco-BIS/tree/main/skills/model-selection
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bis-med-it/marco-BIS.git /tmp/marco-BIS
mkdir -p .claude/skills
cp -r /tmp/marco-BIS/skills/model-selection .claude/skills/model-selection
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Model Selection trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Model Selection ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Model Selection không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Model selection

Purpose

Translate a research question into one or more recommended econometric approaches, with explicit rationale for why each is suitable and what trade-offs are involved. This skill helps users without deep econometric expertise arrive at an appropriate specification, and gives experienced users a second opinion on their choice.

When this skill runs

  1. At the start of a Mode C analysis (open research question), in Stage 1C before Stage 2 (specification), and as a quick sanity check in Mode A. Even if the user has named a model, this skill validates the choice.
  2. On request. The user asks what approach to use for a given question.
  3. On revision. If Stage 5 (economic sensibility) fails repeatedly, the orchestrator may return here to consider alternative model classes.

Workflow

Step 1: Understand the research question

Gather (through conversation or from the user's initial prompt):

  1. Research question in plain language. What relationship or phenomenon is being investigated? Examples:

    • "How does monetary policy affect output and inflation?"
    • "What drives exchange rate fluctuations in small open economies?"
    • "I want to forecast GDP growth for the next four quarters."
    • "What is the effect of fiscal stimulus on unemployment?"
  2. Analytical objective. Classify into one or more of:

    • Structural analysis: identifying causal effects of shocks (→ structural VAR, DSGE, local projections)
    • Forecasting: predicting future values (→ BVAR with tight priors, factor models, machine learning)
    • Policy simulation: counterfactual scenarios (→ DSGE, structural VAR with identified shocks)
    • Descriptive dynamics: understanding co-movement and transmission (→ reduced-form VAR, spectral analysis)
    • Historical decomposition: attributing past movements to sources (→ structural VAR, BVAR)
  3. Data context:

    • How many variables? (small system 2-4 vs medium 5-10 vs large 10+)
    • What frequency? (monthly, quarterly, annual)
    • How long is the sample? (short < 80 obs, medium 80-200, long > 200)
    • Any known structural breaks in the sample?
    • Cross-sectional or panel dimension?
  4. Constraints and preferences:

    • Must results be interpretable to policymakers? (favours simpler models)
    • Is there a specific identification strategy in mind?
    • Is Bayesian or frequentist inference preferred?
    • Any institutional conventions or precedent to follow?

Step 2: Map to candidate models

Based on the answers, select from the model library. Present 1-3 recommendations ranked by suitability, with clear rationale.

Model library
Model classBest forVariablesSample needsIdentificationLibrary entry point
Classical VARDescriptive dynamics, Granger causality, baseline2-8Medium+Cholesky, nonelib.fit_var
Bayesian VAR (Minnesota)Forecasting, small samples, many variables; block exogeneity for small open economies (exogenous_block=)2-20+AnyCholesky, sign restrictionslib.fit_minnesota_bvar
Bayesian VAR (Sims-Zha)Structural analysis with informative priors2-10AnyCholesky, exclusionlib.fit_minnesota_bvar (Sims-Zha dummy obs)
Bayesian VAR (steady-state / mean-adjusted)Anchor a variable's long-run mean to a known value (e.g. an inflation target)2-10AnyCholesky, signlib.fit_steady_state_bvar (Villani 2009)
Structural VAR (short-run)Causal shock identification2-8Medium+Cholesky, recursivelib.fit_var + lib.cholesky_irf
Sign-restricted VARTheory-consistent identification2-10Medium+Sign / zero+sign / narrative / magnitude / FEV-share / higher-momentlib.sign_restricted_irf, lib.zero_sign_restricted_irf
Local projectionsRobust impulse responses, nonlinearities2-8LongIV, Choleskylib.lp_irf, lib.lp_iv_irf, lib.state_dependent_lp_irf, lib.blp_irf
TVP-VARTime-varying parameters, regime changes2-5LongCholesky, signlib.fit_tvp_var_sv_primiceri and variants; IRFs trace a documented final-period-parameter counterfactual; historical decomposition and shock recovery are unsupported for TVP fits (the library rejects them)
Smooth-transition VAR (STVAR)State-dependent dynamics (e.g. recession vs expansion fiscal multipliers, AG 2012)2-5LongRecursive within regimesno native STVAR primitive; approximated by lib.state_dependent_lp_irf (Ramey-Zubairy-style state-dependent LP)
Structural VAR (long-run)Permanent vs transitory shocks2-4LongBlanchard-Quahlib.long_run_irf
Proxy SVARExternal-instrument identification2-8Medium+Single- or multi-instrumentlib.proxy_svar_irf
Non-Gaussian SVARIdentification via non-Gaussianity2-6Medium+FastICA / parametric pseudo-MLElib.nongaussian_svar_irf
Panel VARCross-country / cross-unit analysis (pooled, mean-group, partial-pooling, hierarchical, global)2-6 per unitShort OKCholesky, signlib.fit_pooled_var, lib.fit_mean_group, lib.fit_partial_pooling_var, lib.fit_hierarchical_panel_var, lib.fit_global_var. Pooled / mean-group / partial-pooling fits are POINT-ESTIMATE ONLY (generic parameter draws and residual bootstrap are rejected; their VARFit face carries one canonical unit's sample); draw-based bands need the hierarchical fit (posterior draws) or the global VAR (a single stacked system)
Mixed-frequency VARMixed monthly / quarterly data2-10Medium+Choleskylib.fit_mfvar_bayesian (quarterly series must be quarter-on-quarter growth rates, not annualised)
FAVAR / BDFMLarge information sets via factorsManyMedium+Cholesky, signlib.fit_favar, lib.fit_dfm_bayesian
DSGE-VARTheory-data bridge, policy simulationModel-specificMedium+Model-impliednot implemented

For the complete index of lib modules and their dependency DAG, see scripts/lib/README.md. Models marked not implemented are not in the library; if recommended, inform the user of availability and suggest the closest available alternative.

Step 3: Recommend and explain

For each recommended model, present:

  1. Why this model. Connect directly to the user's research question.

    • Example: "You want to understand how monetary policy shocks affect output. A VAR with Cholesky identification follows the approach of Sims (1980). For your relatively short sample, I recommend adding Bayesian shrinkage, drawing on Litterman (1986)."
  2. What it assumes. In plain language, not just technical conditions.

    • Example: "The Cholesky identification assumes that money supply does not respond to output within the same quarter. This is debatable; we can revisit if results are problematic."
  3. What it cannot do. State the limitations plainly.

    • Example: "A reduced-form VAR cannot distinguish supply from demand shocks without further identification assumptions."
  4. Trade-offs between candidates. If recommending multiple options:

    • Example: "Local projections and VAR estimate the same impulse responses in population (Plagborg-Møller & Wolf 2021, ECMA), so the choice is a finite-sample bias-variance trade-off, not a choice between different questions. Short lag-augmented LP is nearly unbiased but noisy at long horizons; the VAR extrapolates its lag structure, gaining precision at the cost of lag-truncation bias (Li, Plagborg-Møller & Wolf 2024). With your 120-observation sample I'd start with the BVAR for precision and use LP as the misspecification check at the horizons you care about."
  5. Literature pointers. Reference the key paper(s) for the recommended approach so the user can read further.

Step 4: Validate user's choice (if they came with one)

If the user already specified a model:

  1. Confirm whether it's appropriate for their stated research question.
  2. If appropriate, say so briefly and proceed.
  3. If potentially problematic, explain the concern and suggest alternatives, but respect the user's expertise. Frame it as "you may also want to consider" rather than "you should not use".
  4. If clearly inappropriate (e.g., reduced-form VAR for causal claims without identification), flag this directly but respectfully.

Step 5: Confirm and hand off

Present the recommendation summary. Wait for the user to confirm or modify. Once confirmed, return the selected model class and preliminary specification to the orchestrator. Stage 2 (specification) runs only for a new or adapted specification; an unchanged Mode A entry follows Stage 1A.

Log this stage via the research-log skill, including the research question, candidates considered, recommendation rationale, and user's decision.

Knowledge sources

Use the source-priority order in specification/SKILL.md. For model selection: search the dictionary first; use the knowledge base to adapt or filter matches (a US specification may need fundamental changes for an open economy); use parametric knowledge throughout to judge fit, combine entries and fill gaps; escalate to advisor-protocol for a novel method beyond the agent's confidence.

Guiding non-expert users

A key design goal is that a user with a policy question but limited econometric training can reach a sensible specification. The skill should:

  • Avoid jargon in the initial conversation. Use plain language first, technical terms second (with brief definitions).
  • Ask clarifying questions one at a time, not as a long list.
  • Provide concrete examples: "This is the approach Sims used in his 1980 paper to study how monetary policy affects the economy."
  • Default to well-established, widely-used methods rather than the newest techniques unless the user's question specifically requires them.
  • Be transparent about what the tool can and cannot do. If the best model is not implemented, say so and suggest the best available alternative.

Example dialogues

Example 1: Non-expert user

User: "I want to understand how interest rate changes affect housing prices in my country. I have quarterly data for 15 years."

Model selection recommends: Bayesian VAR with 3-4 variables (policy rate, housing prices, GDP, CPI), Minnesota prior, Cholesky identification with the recursive order confirmed from policy and data timing. Rationale: 60 quarterly observations is a small sample, so Bayesian shrinkage helps. The question is about transmission of a specific shock, which maps to impulse response analysis.

Example 2: Experienced user with a choice

User: "I want to estimate a DSGE-VAR following Del Negro and Schorfheide (2004)."

Model selection validates: appropriate for bridging theory and data. Notes that the DSGE-VAR method is not implemented. Suggests BVAR with theory-informed priors as an interim approach, and offers to escalate to the advisor protocol for guidance on manually implementing the DSGE-VAR methodology.

Example 3: Ambiguous question

User: "I need to forecast inflation."

Model selection asks: forecast horizon? (short-term → BVAR; medium-term → factor model or DSGE). Single country or multiple? Point forecast or density forecast? Are you comparing against an existing institutional model? Then recommends accordingly.

Câu hỏi thường gặp

Kỹ năng AI Model Selection làm được gì?

Recommends appropriate econometric models and specifications based on the user's research question, data availability, and analytical objectives. The orchestrator invokes this at the start of a Mode C analysis (and as a sanity check in Mode A), before data retrieval or estimation. Use whenever the user describes a research question, policy problem, or analytical goal without specifying a model, or when they ask "what model should I use", "how should I analyse this", "what's the best approach for", or describe a macro/financial question they want to investigate. Also triggers when the user h...

Vì sao nên dùng Model Selection trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Model Selection là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Model Selection trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/bis-med-it/marco-BIS/tree/main/skills/model-selection. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Model Selection?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Model Selection với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Model Selection với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Model Selection có miễn phí không?

Có. Kỹ năng này được bis-med-it phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇