pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
This skill covers publication-quality tables and figures for academic research papers. Use when formatting regression results, summary statistics, Monte Carlo output, or research visualizations for LaTeX inclusion. Triggers on "table", "figure", "tabulate", "stargazer",
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill publication-output --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/publication-outputContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill covers publication-quality tables and figures for academic research papers. Use when formatting regression results, summary statistics, Monte Carlo output, or research visualizations for LaTeX inclusion. Triggers on "table", "figure", "tabulate", "stargazer",
name: publication-output argument-hint: "<table or figure type>" description: >- This skill covers publication-quality tables and figures for academic research papers. Use when formatting regression results, summary statistics, Monte Carlo output, or research visualizations for LaTeX inclusion. Triggers on "table", "figure", "tabulate", "stargazer", "publication-ready", "LaTeX table", "event study plot", "coefficient plot", "RD plot", "power curve", "specification curve", "binscatter", "format results", "booktabs".
Generate publication-quality tables and figures for academic research papers. Routes to the appropriate output type based on content, applies standard academic formatting conventions, and produces files ready for LaTeX inclusion.
Skip when:
Use when:
| Content type | Output | Reference | |---|---|---| | Regression results (coefficients, SEs, R², N) | Stargazer-style coefficient table | `references/table-generation.md` | | Summary statistics (means, SDs, quantiles) | Descriptive statistics panel | `references/table-generation.md` | | Monte Carlo output (bias, RMSE, coverage) | Simulation results table | `references/table-generation.md` | | Balance / covariate comparison | Balance table with normalized differences | `references/table-generation.md` | | Transition probabilities | Matrix with row/column labels | `references/table-generation.md` | | First-stage IV results | First-stage regression table | `references/table-generation.md` | | Time-relative coefficients (leads/lags) | Event study plot | `references/figure-generation.md` | | Running variable + cutoff | RD plot with local polynomial | `references/figure-generation.md` | | Multiple estimates with CIs | Coefficient comparison plot | `references/figure-generation.md` | | Sample sizes × effect sizes | Power curve | `references/figure-generation.md` | | Group distributions | Density / kernel density plot | `references/figure-generation.md` | | Two continuous variables | Binned scatter plot | `references/figure-generation.md` | | Sorted estimates + indicator matrix | Specification curve | `references/figure-generation.md` |
| Setting | Default | |---|---| | Format | LaTeX (booktabs: `\toprule`, `\midrule`, `\bottomrule`) | | Stars | On coefficients, never on SEs (* p<0.10, ** p<0.05, *** p<0.01) | | SEs | In parentheses, directly below coefficient | | Decimal alignment | All numbers in a column align at decimal point | | Fixed effects | Yes/No indicator rows, not coefficient rows | | Negative numbers | Minus sign (economics convention), not parentheses | | File location | `tables/<descriptive-name>.tex` | | Label format | `tab:<name>` |
| Setting | Default | |---|---| | Font | Serif (Computer Modern / Times), 11-12pt labels | | Size | 6.5" × 4.5" (single column), 13" × 4.5" (two-panel) | | DPI | Vector (PDF) primary, 300 DPI PNG secondary | | Style | White background, no gridlines, bottom+left axes only | | Color | Grayscale-friendly with distinct markers and line styles | | Colorblind | Okabe-Ito or ColorBrewer Set2 when color is used | | File location | `figures/<descriptive-name>.pdf` + `.png` | | Label format | `fig:<name>` |
| Language | Tables | Figures | |---|---|---| | Python | pandas, stargazer, pystout, tabulate | matplotlib + seaborn | | R | stargazer, modelsummary, kableExtra, gt, tinytable, fixest::etable() | ggplot2, coefplot, binsreg | | Julia | PrettyTables.jl, Latexify.jl | Plots.jl, Makie.jl | | Stata | esttab, outreg2, estout | twoway, coefplot, binscatter |
**Package notes:**
**Automated vs semi-automated tradeoff:** Automated tools (esttab, stargazer) are quick but hard to customize. Semi-automated tools (save intermediates, generate LaTeX separately) are harder to start but easier to customize. Costs are convex for automated, concave for semi-automated.
**Quarto+Typst:** Quarto with Typst backend offers sub-second compilation for iterative work. Use `keep-tex: true` for journal submission when you need the raw LaTeX output.
Tables and figures often require multi-panel layouts:
| Pattern | Table panels | Figure layout | |---|---|---| | Multiple outcomes | Panel A/B/C by outcome | 1×2 or 1×3 side-by-side | | Multiple samples | Panel by subsample | 2×1 stacked | | Multiple methods | Panel by estimator (OLS/IV/GMM) | 2×2 grid | | Robustness variants | Columns within one panel | 2×3 grid | | Event study + pre-trends | — | 2×1 stacked (estimates + test) |
Ensure consistent axis scales, font sizes, and formatting across panels. Label panels as (a), (b), (c) or Panel A, Panel B, Panel C.
import pandas as pd from stargazer.stargazer import Stargazer from linearmodels.iv import IV2SLS # Format results with stargazer stargazer = Stargazer(
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…