Stata Regression
Structured Stata regression workflow that produces publication-ready tables with esttab and reghdfe support.
- CCM score
- 56 of 100
- skills.sh installs
- 434
- GitHub stars
- 684
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the workflow from data checks through model estimation, clustered standard errors, and exported tables
- Runs
regress,reghdfe, orxtregdepending on the design, withesttaboroutreg2for LaTeX, Word, or CSV output - Requires clarifying the dependent variable, controls, fixed effects, and clustering level before generating any code
- Designed for econometric analysis in Stata 17+ where
estoutand optionallyreghdfeare installed
Install
$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill stata-regression -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Stata Regression
Purpose
This skill produces reproducible regression analysis workflows in Stata, including model diagnostics and publication-ready tables using esttab or outreg2.
When to Use
- Estimating linear or nonlinear regression models in Stata
- Producing tables for academic papers and reports
- Running robustness checks and alternative specifications
Instructions
Follow these steps to complete the task:
Step 1: Understand the Context
Before generating any code, ask the user:
- What is the dependent variable and key regressors?
- What controls and fixed effects are required?
- How should standard errors be clustered?
- What output format is needed (LaTeX, Word, or CSV)?
Step 2: Generate the Output
Based on the context, generate Stata code that:
- Loads and checks the data - Handle missing values and verify variable types
- Runs the requested specification - Use
regress,reghdfe, orxtregas appropriate - Adds robust or clustered standard errors - Match the study design
- Exports tables - Use
esttaboroutreg2with clear labels
Step 3: Verify and Explain
After generating output:
Details
- Repository
- github.com/meleantonio/awesome-econ-ai-stuff
- Categories
- Data Science & Analytics, Research & Academic
- First seen
- Jun 3, 2026
Questions
What does the stata-regression skill do?
stata-regression runs regression analyses in Stata and produces publication-ready output tables. It generates code that loads and checks the data, runs regress or reghdfe, adds robust or clustered standard errors, and exports tables with esttab or outreg2.
How do I install the stata-regression skill?
Run this command in a project: npx -y skills add meleantonio/awesome-econ-ai-stuff --skill stata-regression -y. After that, stata-regression lets the agent write Stata regression code and export tables to LaTeX, Word or CSV.
What do I need to use stata-regression?
stata-regression needs Stata 17 or later and the estout package for esttab. The reghdfe package is optional and is only needed for high-dimensional fixed effects, and the skill lists the ssc install commands for both.
Where does stata-regression stand in the Data Science & Analytics category?
stata-regression is listed in the Data Science & Analytics category on Claude Marketplaces. It differs from its neighbours in that it targets econometric regression in Stata with clustered errors and fixed effects.
More from meleantonio/awesome-econ-ai-stuff
All 9Similar to Stata Regression
More Data Science & Analyticsr-econometricsSkillmeleantonio/awesome-econ-ai-stuff349 installsGuided R workflow for IV, DiD, and RDD analyses with fixest-based code and built-in diagnostics.
stata-data-cleaningSkillmeleantonio/awesome-econ-ai-stuff362 installsReproducible Stata do-file generator for cleaning messy economic datasets, with setup, validation, and documentation.
empirical-analysis-stataPluginbrycewang-stanford/Auto-Empirical-Research-Skills5.1K starsExplicit 8-step empirical-analysis pipeline in the traditional Stata ecosystem (reghdfe + ivreg2 + csdid + did_imputation + sdid + rdrobust + synth + psmatch2 +
statsmodelsSkillk-dense-ai/scientific-agent-skills2.5K installsPython statistical modeling library covering regression, GLMs, discrete choice, and time series with explicit inference and diagnostics.
Regression ModelingSkillaj-geddes/useful-ai-prompts479 installsRegression modeling toolkit that fits linear, polynomial, and regularized models with a shared evaluation workflow.
statistical-analysisSkillk-dense-ai/scientific-agent-skills2.7K installsGuided statistical analysis that selects tests, checks assumptions, reports effect sizes, and formats APA results.