DeepSHPlugins
dsh-econ-tools 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-econ-tools

工具與整合JavaScriptMIT

計量經濟學研究助手:6 個工具覆蓋方法選擇、資料預處理、模型設定、實證分析(含 Python/R/Stata 程式碼模板)、穩健性檢驗與結果報告。

3 StarsChaos-Hyper 更新時間 2026-08-20
訪問 GitHub 倉庫
dsh-econ-tools 專案預覽

專案介紹

中文

計量經濟學研究助手:6 個工具覆蓋方法選擇、資料預處理、模型設定、實證分析(含 Python/R/Stata 程式碼模板)、穩健性檢驗與結果報告。

English

Econometrics research assistant: 6 tools covering method selection, data preparation, model specification, empirical analysis with Python/R/Stata code templates, robustness checks, and result reporting.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
Chaos-Hyper
倉庫
Chaos-Hyper/dsh-econ-tools
GitHub Stars
3
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-20
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

60/ 100
維護活躍
85
文件與實用資訊
100
生態關注度
17
安裝便捷訊號
100
專案宣告訊號
100

近 22 天仍在更新;README 含完整安裝與使用說明;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

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

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

📊 dsh-econ-tools — Econometrics Research Assistant

English | 中文

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 DSH Plugin Changelog


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

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案