Format Regression Table
SkillDev toolsFormats estimation output as a publication-quality regression table with stars, SEs, and fit statistics. Use when creating a results table.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Format Regression Table skill
What this skill tells your AI
The instructions your AI receives, as published by brycewang-stanford/auto-empirical-research-skills in skills/29-quarcs-lab-project20XXy/dot-claude/skills/regression-table/SKILL.md and read by ahel’s review.
Create a publication-quality regression table from estimation output in a notebook.
Arguments
$ARGUMENTS— a notebook reference and/or description of the table (e.g., "notebook-02 OLS results" or "main regression table with 3 specifications")
Steps
-
Identify the source notebook and the estimation output:
- If a notebook name is provided, read that notebook
- If no notebook is specified, ask the user which notebook contains the regression results
- Look for cells with estimation commands (Python:
statsmodels,linearmodels; R:lm,fixest,felm; Stata:reg,reghdfe,ivregress)
-
Ask the user for table specifications:
- Which models/columns to include
- Dependent variable name(s)
- Which coefficients to display (or "all")
- Fixed effects to report as Yes/No rows
- Clustering level for standard errors
- Any custom notes for the table footer
-
Construct the table following academic conventions:
- Header row: Dependent variable name spanning all columns, column numbers (1), (2), (3)...
- Coefficient rows: Point estimate on top, standard error in parentheses below
- Significance stars:
*p<0.10,**p<0.05,***p<0.01 - Fixed effects rows: Yes/No indicators
- Summary rows: Observations (N), R-squared, Adjusted R-squared, or other fit statistics
- Footer: Significance legend and notes about standard errors
-
Create or update a cell in the specified notebook with:
- Cell directive:
#| label: tbl-<descriptive-name>(or*|for Stata) - Cell directive:
#| tbl-cap: "<caption>"(or*|for Stata) - The code to generate the formatted Markdown table
- Stata caveat: Do NOT use
tbl-prefix for Stata text output — use a plain label instead (e.g.,stata-regression)
- Cell directive:
-
Sync the Jupytext pair:
uv run jupytext --sync notebooks/<name>.md -
Show the user the embed shortcode to paste into
index.qmd:{{< embed notebooks/<name>.ipynb#tbl-<label> >}}
Error handling
- If the notebook has no estimation output, report this and ask the user to run the regressions first.
- If the estimation output format is not recognized, ask the user to provide the raw coefficients and standard errors.
Signals
- GitHub stars
- 4k
- Forks
- 531
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
regression-table- Source
- github.com/brycewang-stanford/auto-empirical-research-skills
github.com/brycewang-stanford/auto-empirical-research-skills
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythonobsidian-markdown
Skill · agricidaniel
The pick for Markdownmarkdown-formatter
Skill · nvidia
The pick for Markdownrseng-notebooks
Skill · fdiblen
The pick for Notebooksexecute
Skill · brycewang-stanford
The pick for Notebooks