build-tables

Combines saved Stata estimates into LaTeX and CSV tables via esttab.

220|358|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/maxwell2732/codex-stata-for-economists --skill build-tables
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-tables
Source: https://github.com/maxwell2732/codex-stata-for-economists/tree/main/.claude/skills/build-tables
Command: npx skills add https://github.com/maxwell2732/codex-stata-for-economists --skill build-tables

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the repetitive, error-prone work of manually assembling multiple Stata model outputs into consistent publication tables by automatically combining saved estimates into formatted LaTeX and CSV artifacts.

Core Features & Use Cases

  • Estimates-to-table assembly: Combines multiple saved est store m_* results into one cohesive table with the project’s standard esttab formatting.
  • Dual output for paper and audit: Generates both output/tables/<name>.tex (for papers) and output/tables/<name>.csv (for reviewers and verification).
  • Table-ready standard stats and stars: Includes rows like N, within R-squared, and mean dependent variable (when present) and applies significance stars using the project default thresholds.
  • Column specification flexibility: Supports either building from a named table target (resolved by searching producing do-files) or from an explicit list of saved estimate names.

Quick Start

Ask an AI agent to run the build-tables skill for main_regression so it produces output/tables/main_regression.tex and output/tables/main_regression.csv from the relevant stored est store m_* results.

Frequently Asked Questions about build-tables

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

FAQPage Schema
How do I combine multiple Stata regression estimates into a single LaTeX table?

To combine multiple Stata regression estimates into a single LaTeX table, restore saved `m_<name>` estimates and compile them into one cohesive `esttab` output. This generates a publication-ready `.tex` file while verifying coefficient sanity and key statistics like N and mean dependent variable.

How do I generate reproducible CSV audit files from Stata esttab output?

Generating reproducible CSV audit files from Stata esttab output involves compiling saved estimates into `output/tables/<name>.csv`. This dual-output approach produces a structured audit file alongside the LaTeX table for reviewer verification and validation.

Can I compile alternative model specifications and clustering options into one regression table?

Yes, you can compile alternative model specifications, clustering options, and fixed effects into one regression table by combining the relevant saved `est store m_*` results. The tool assembles these multiple specifications into a single cohesive `esttab` output.

What is the best way to automate Stata table generation for Quarto report rendering?

Automating Stata table generation for Quarto report rendering requires building formatted `.tex` and `.csv` artifacts from saved estimates before rendering. This workflow ensures tables are publication-ready and validated with standard stats and significance stars prior to Quarto compilation.

Do I need to manually specify saved estimate names to build Stata regression tables?

You do not always need to manually specify saved estimate names to build Stata regression tables. The tool supports building from a named table target resolved by searching producing do-files, or directly from an explicit list of saved `est store m_*` estimate names.

Why are my Stata regression tables missing key stats like N and mean dependent variable?

Stata regression tables may be missing key stats like N and mean dependent variable if the table generation process does not explicitly verify their presence. The build-tables workflow checks for these stats during assembly and includes rows for N, within R-squared, and mean dependent variable when present.