DeepSeek Harness 插件

dsh-econ-tools

计量经济学研究助手:6 个工具覆盖方法选择、数据预处理、模型设定、实证分析(含 Python/R/Stata 代码模板)、稳健性检验与结果报告。

跳到安装方式

来源信息

GitHub 仓库
Chaos-Hyper/dsh-econ-tools
最近更新
2026年8月20日
分类
工具与能力
GitHub stars
0

安装

默认先复制一段 Prompt,让 Agent 读页面和仓库;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读页面和仓库。

请先不要安装。阅读这个 DeepSeek Harness 插件,说明它解决什么问题、会访问哪些文件、网络或密钥,以及如何安装和卸载。

插件页面:https://deepseekplugins.org/zh/plugins/Chaos-Hyper/dsh-econ-tools
GitHub:https://github.com/Chaos-Hyper/dsh-econ-tools
插件名:dsh-econ-tools
作者:Chaos-Hyper
安装命令:dsh plugin --profile web add github:Chaos-Hyper/dsh-econ-tools

确认前不要执行安装命令。

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

📊 dsh-econ-tools — Econometrics Research Assistant

English | [中文](README.zh.md)

> A DeepSeek Harness plugin providing 6 ready-to-use econometrics tools covering the full research workflow: method selection, data preparation, model specification, empirical analysis, robustness checks, and result reporting.

![MIT License](LICENSE) !DSH Plugin ![Changelog](CHANGELOG.md)

---

Feature Overview

ToolFunctionUse Case
🎯 econ_method_guideMethod Guide — Recommend appropriate econometric models based on research question and data typeResearch design stage, unsure which model to use
🧹 econ_data_prepData Preparation — Missing value handling, outlier detection, variable transformation, categorical encoding, with Python code snippetsCleaning raw data before analysis
⚙️ econ_model_specModel Specification & Variable Selection — Theory-driven, data-driven, hybrid, and ML-based (LASSO/Ridge/ElasticNet) strategies, with diagnostic checklistsSelecting core variables and controls
🔬 econ_run_analysisEmpirical Analysis — Supports OLS, IV/2SLS, Logit, Probit, panel FE, DID, RDD; auto-generates Python/R/Stata code templates with interpretation guidanceRunning regressions, interpreting results
🛡️ econ_robustnessRobustness Checks — Omitted variables, measurement error, sample selection, model specification, outliers, parallel trends, placebo tests — 7 dimensionsVerifying whether core findings are reliable
📝 econ_reportResult Reporting — Generate descriptive statistics tables, baseline regression tables, and robustness check summaries in Markdown / LaTeX / HTML, bilingual (CN/EN)Writing papers, formatting result tables

---

Quick Start

Installation

#### Option 1: From GitHub (Recommended)

Install directly via the dsh CLI:

dsh plugin --profile web add github:Chaos-Hyper/dsh-econ-tools

#### Option 2: Local File Installation

If you already have the source directory, install by path:

dsh plugin --profile web add /path/to/dsh-econ-tools

Or manually add it to the web profile dependencies (edit ~/.dsh/profiles/web/package.json):

"dependencies": {
    "dsh-econ-tools": "link:/path/to/dsh-econ-tools"
}

Then add "dsh-econ-tools" to the dsh.profile.bundles array, and run:

cd ~/.dsh/profiles/web
pnpm install

Restart DSH for the changes to take effect.

Usage

The Agent will automatically call the appropriate tool based on your research needs. For example:

> "I want to study the impact of education on income using cross-sectional data. What model should I use?" > → Agent calls econ_method_guide, recommending OLS, IV methods, etc.

> "Run robustness checks for potential omitted variable bias." > → Agent calls econ_robustness, providing Oster stability test and other solutions.

---

Tool Details

1. econ_method_guide

Parameters:

  • research_goal: Research goal (causal inference / prediction / policy evaluation)
  • dependent_type: Dependent variable type (continuous / binary / panel)
  • data_structure: Data structure (cross-section / time series / panel)
  • endogeneity_concern: Whether endogeneity is a concern (optional)

Sample output:

{
  "recommended_models": ["OLS", "DID"],
  "methodology_notes": ["Run model diagnostics", "Use robust standard errors"],
  "next_tools": ["econ_data_prep", "econ_model_spec", "econ_run_analysis"]
}

2. econ_data_prep

Parameters:

  • missing_rate: Missing data proportion (none / low / moderate / high)
  • outlier_concern: Whether to address outliers
  • variable_types: Variable types (continuous / categorical / dummy)
  • need_transformation: Whether variable transformation is needed

Output includes Python code: KNNImputer for missing values, Winsorize for outliers.

3. econ_model_spec

Four strategies:

StrategyMethodBest For
Theory-drivenCore model based on economic theory, add controls stepwiseReplication studies
Data-drivenStepwise regression + AIC/BICMany candidates, weak theory
HybridTheory screening → data-driven → LASSO reviewMost empirical research
ML-basedLASSO / Ridge / Elastic Net / Random ForestHigh-dimensional data, prediction

4. econ_run_analysis

Supported models: OLS, IV/2SLS, Logit, Probit, Panel FE, DID, RDD

Auto-generated code:

  • Python: statsmodels + robust SE
  • R: fixest + lmtest + sandwich
  • Stata: reg + robust

5. econ_robustness

Seven dimensions:

DimensionKey Methods
Omitted variablesOster (2019) stability test, Altonji-Elder-Taber ratio
Measurement errorAlternative variable estimation, IV correction
Sample selectionHeckman two-stage, PSM
Model specificationFunctional form change, quantile regression, Bootstrap
OutliersWinsorize 1%/5%, trim extremes, M-estimation
Parallel trendsEvent study plot, placebo treatment time, permutation test
Placebo testRandom treatment assignment, fictitious treatment time

6. econ_report

Report types:

  • Descriptive statistics table (Table 1)
  • Baseline regression table (Table 2, with significance stars, controls, FE, R² footnotes)
  • Robustness checks summary (Table 3)
  • Full research summary (all three tables)

Formats: Markdown, LaTeX, HTML

Languages: Chinese, English

---

Suggested Workflow

econ_method_guide    → Determine research method and model
       ↓
econ_data_prep       → Clean and preprocess data
       ↓
econ_model_spec      → Specify model, select variables
       ↓
econ_run_analysis    → Run regression analysis
       ↓
econ_robustness      → Verify result robustness
       ↓
econ_report          → Generate result report

---

License

MIT