stata-regression

Generate reproducible Stata regression analyses with publication-ready tables via esttab or outreg2.

203|27|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/franklee16/academic-research-skills --skill stata-regression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stata-regression
Source: https://github.com/franklee16/academic-research-skills/tree/main/data-analysis/stata-regression
Command: npx skills add https://github.com/franklee16/academic-research-skills --skill stata-regression

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of producing correct, reproducible regression results in Stata and turning them into publication-ready output tables.

Core Features & Use Cases

  • Regression workflow orchestration: guides end-to-end model setup in Stata, including variable checks and handling missing data.
  • Robust/clustered inference: helps apply the appropriate standard errors (robust or clustered) to match the study design.
  • Publication-ready tables export: structures results for export via esttab or outreg2 with clear labels for academic reporting.

Example use case: You need an OLS baseline with firm and year fixed effects, clustered standard errors, plus 2 robustness specifications, and you want a LaTeX table suitable for a paper.

Quick Start

Ask: "Run OLS with firm and year fixed effects, cluster standard errors by firm, and export a labeled LaTeX regression table for three specifications."

Frequently Asked Questions about stata-regression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Stata regressions with fixed effects and clustered standard errors?

To run Stata regressions with fixed effects and clustered standard errors, you set up the model, apply the appropriate robust or clustered inference, and export the results with clear labels using esttab or outreg2.

What is the best way to export Stata regression results to a LaTeX table?

The best way to export Stata regression results to a LaTeX table is by using esttab or outreg2, which structure results with clear labels for academic reporting and support multiple specifications including robustness checks.

Can I generate reproducible Stata code for OLS and robustness checks?

Yes, you can generate validated Stata code for OLS and robustness checks that runs the requested models, applies alternative specifications, and exports publication-ready output tables for econometrics workflows.

How do I add firm and year fixed effects to an OLS regression in Stata?

Adding firm and year fixed effects to an OLS regression in Stata involves orchestrating the end-to-end model setup, checking variables, handling missing data, and structuring the output for academic reporting.

When do I need clustered standard errors instead of robust standard errors in econometrics?

You need clustered standard errors instead of robust standard errors when your study design involves grouped data, requiring inference adjustments that cluster standard errors to match the specific research structure.