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.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Chaos-Hyper/dsh-econ-tools
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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.
Feature Overview
| Tool | Function | Use Case |
|---|---|---|
🎯 econ_method_guide |
Method Guide — Recommend appropriate econometric models based on research question and data type | Research design stage, unsure which model to use |
🧹 econ_data_prep |
Data Preparation — Missing value handling, outlier detection, variable transformation, categorical encoding, with Python code snippets | Cleaning raw data before analysis |
⚙️ econ_model_spec |
Model Specification & Variable Selection — Theory-driven, data-driven, hybrid, and ML-based (LASSO/Ridge/ElasticNet) strategies, with diagnostic checklists | Selecting core variables and controls |
🔬 econ_run_analysis |
Empirical Analysis — Supports OLS, IV/2SLS, Logit, Probit, panel FE, DID, RDD; auto-generates Python/R/Stata code templates with interpretation guidance | Running regressions, interpreting results |
🛡️ econ_robustness |
Robustness Checks — Omitted variables, measurement error, sample selection, model specification, outliers, parallel trends, placebo tests — 7 dimensions | Verifying whether core findings are reliable |
📝 econ_report |
Result 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 outliersvariable_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:
| Strategy | Method | Best For |
|---|---|---|
| Theory-driven | Core model based on economic theory, add controls stepwise | Replication studies |
| Data-driven | Stepwise regression + AIC/BIC | Many candidates, weak theory |
| Hybrid | Theory screening → data-driven → LASSO review | Most empirical research |
| ML-based | LASSO / Ridge / Elastic Net / Random Forest | High-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:
| Dimension | Key Methods |
|---|---|
| Omitted variables | Oster (2019) stability test, Altonji-Elder-Taber ratio |
| Measurement error | Alternative variable estimation, IV correction |
| Sample selection | Heckman two-stage, PSM |
| Model specification | Functional form change, quantile regression, Bootstrap |
| Outliers | Winsorize 1%/5%, trim extremes, M-estimation |
| Parallel trends | Event study plot, placebo treatment time, permutation test |
| Placebo test | Random 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
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 37685
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37029
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
superdesigndev/treg★ 8322
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5899
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 2178
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
helloHub1212/dsh-windows-mcp★ 1612
Bridges the CursorTouch/Windows-MCP desktop automation server into DSH through the official MCP client bridge, registering its screenshot, UI tree snapshot, mouse and keyboard input, clipboard, process and registry tools as mcp__windows__* tools for the model, and adds a windows_mcp_doctor diagnostic tool. Computer Use is off by default and is switched on from the plugin panel.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.