Skip to content

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
View on GitHub

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, or xtreg depending on the design, with esttab or outreg2 for 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 estout and optionally reghdfe are installed

Install

$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill stata-regression -y

Installs 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:

  1. Loads and checks the data - Handle missing values and verify variable types
  2. Runs the requested specification - Use regress, reghdfe, or xtreg as appropriate
  3. Adds robust or clustered standard errors - Match the study design
  4. Exports tables - Use esttab or outreg2 with 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 9

Similar to Stata Regression

More Data Science & Analytics