본문으로 건너뛰기
cccskills
무료GitHub에 공개

publication-output

Turn regression results, summary statistics, and simulation output into tables and figures for academic papers. Apply consistent number formatting, labels, and accessible visual styles, then produce files ready to include in LaTeX documents.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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".

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Format regression results as LaTeX tables
  • Compare simulation results in a table
  • Plot estimates before and after an intervention
  • Standardize formatting across multiple figure panels

포함된 파일(3)

  • SKILL.md7.7 KB
  • references/figure-generation.md14.4 KB
  • references/table-generation.md13.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Publication Output

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.

When to Use

Skip when:

  • The task is choosing an empirical method or running estimation (use empirical-playbook or causal-inference skill)
  • The task is journal submission logistics or referee responses (use submission-guide skill)
  • Results are exploratory and not yet ready for formatted output (finish estimation first)

Use when:

  • After estimation: format regression results, diagnostics, or robustness checks into tables
  • After simulation: format Monte Carlo results (bias, RMSE, coverage) into comparison tables
  • For descriptive work: summary statistics, balance tables, transition matrices
  • For visualization: event studies, RD plots, coefficient plots, power curves, densities, specification curves

Output Type Router

Content typeOutputReference
Regression results (coefficients, SEs, R², N)Stargazer-style coefficient tablereferences/table-generation.md
Summary statistics (means, SDs, quantiles)Descriptive statistics panelreferences/table-generation.md
Monte Carlo output (bias, RMSE, coverage)Simulation results tablereferences/table-generation.md
Balance / covariate comparisonBalance table with normalized differencesreferences/table-generation.md
Transition probabilitiesMatrix with row/column labelsreferences/table-generation.md
First-stage IV resultsFirst-stage regression tablereferences/table-generation.md
Time-relative coefficients (leads/lags)Event study plotreferences/figure-generation.md
Running variable + cutoffRD plot with local polynomialreferences/figure-generation.md
Multiple estimates with CIsCoefficient comparison plotreferences/figure-generation.md
Sample sizes × effect sizesPower curvereferences/figure-generation.md
Group distributionsDensity / kernel density plotreferences/figure-generation.md
Two continuous variablesBinned scatter plotreferences/figure-generation.md
Sorted estimates + indicator matrixSpecification curvereferences/figure-generation.md

Format Defaults

Tables

SettingDefault
FormatLaTeX (booktabs: \toprule, \midrule, \bottomrule)
StarsOn coefficients, never on SEs (* p<0.10, ** p<0.05, *** p<0.01)
SEsIn parentheses, directly below coefficient
Decimal alignmentAll numbers in a column align at decimal point
Fixed effectsYes/No indicator rows, not coefficient rows
Negative numbersMinus sign (economics convention), not parentheses
File locationtables/<descriptive-name>.tex
Label formattab:<name>

Figures

SettingDefault
FontSerif (Computer Modern / Times), 11-12pt labels
Size6.5" × 4.5" (single column), 13" × 4.5" (two-panel)
DPIVector (PDF) primary, 300 DPI PNG secondary
StyleWhite background, no gridlines, bottom+left axes only
ColorGrayscale-friendly with distinct markers and line styles
ColorblindOkabe-Ito or ColorBrewer Set2 when color is used
File locationfigures/<descriptive-name>.pdf + .png
Label formatfig:<name>

Language-Specific Packages

LanguageTablesFigures
Pythonpandas, stargazer, pystout, tabulatematplotlib + seaborn
Rstargazer, modelsummary, kableExtra, gt, tinytable, fixest::etable()ggplot2, coefplot, binsreg
JuliaPrettyTables.jl, Latexify.jlPlots.jl, Makie.jl
Stataesttab, outreg2, estouttwoway, coefplot, binscatter

Package notes:

  • pystout (Python) — estout-style regression tables for statsmodels and linearmodels (OLS, IV2SLS, PanelOLS). Supports mgroups for column grouping, modstat for custom statistics rows.
  • tinytable (R) — lightweight, native Typst support, used as modelsummary backend.
  • fixest::etable() (R) — direct from estimation, handles multi-way FE notation automatically.

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.

Multi-Panel Assembly

Tables and figures often require multi-panel layouts:

PatternTable panelsFigure layout
Multiple outcomesPanel A/B/C by outcome1×2 or 1×3 side-by-side
Multiple samplesPanel by subsample2×1 stacked
Multiple methodsPanel by estimator (OLS/IV/GMM)2×2 grid
Robustness variantsColumns within one panel2×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.

Quick Examples

Python: Regression Table

import pandas as pd
from stargazer.stargazer import Stargazer
from linearmodels.iv import IV2SLS

# Format results with stargazer
stargazer = Stargazer([ols_result, iv_result])
stargazer.custom_columns(["OLS", "IV/2SLS"])
stargazer.show_model_numbers(False)
stargazer.significant_digits(3)
with open("tables/main-results.tex", "w") as f:
    f.write(stargazer.render_latex())

Python: Event Study Plot

import matplotlib.pyplot as plt
import matplotlib

matplotlib.rcParams.update({"font.family": "serif", "font.size": 11})
fig, ax = plt.subplots(figsize=(6.5, 4.5))
ax.errorbar(leads_lags, coefficients, yerr=1.96 * se, fmt="o-", color="black", capsize=3)
ax.axhline(y=0, color="gray", linestyle="--", linewidth=0.8)
ax.axvline(x=-0.5, color="red", linestyle=":", linewidth=0.8)
ax.set_xlabel("Periods relative to treatment")
ax.set_ylabel("Coefficient estimate")
ax.spines[["top", "right"]].set_visible(False)
fig.savefig("figures/event-study.pdf", bbox_inches="tight")

Quality Checklist

Before finalizing any output:

  • Decimal alignment consistent within each column
  • Stars attached to coefficients only (never to SEs)
  • SE format consistent throughout (parentheses or brackets, not mixed)
  • Sample sizes sum correctly across panels
  • Column/axis labels clear and unambiguous
  • Significance note present if stars used
  • LaTeX compiles without errors
  • Figures readable in grayscale (B&W print)
  • No default titles on figures (titles go in \caption)
  • All information encoded in color also encoded in shape/line style

Integration with Other Components

  • econometric-reviewer agent preloads this skill to audit tables against code output
  • econometric-reviewer may request formatted output during /workflows:review
  • /workflows:compound captures table/figure templates into docs/solutions/
  • Companion outputs: regression table → summary statistics table; event study → pre-trend test figure

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

a1

무료

Turn a broad research idea into clear, testable questions. Compare familiar and less conventional approaches, structure the selected question around its population and methods, and assess variables, feasibility, and potential theoretical contributions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Turn a research topic into testable questions
  • Narrow an overly broad research question
  • Compare alternative research angles
brycewang-stanford/Auto-Empirical-Research-Skills4.8천2026년 10월 20일 업데이트

a2

무료

Helps build a research framework by comparing theories, mapping relationships between variables, and deriving testable hypotheses. Explores less conventional options, examines weaknesses and competing explanations, and produces diagrams with anticipated reviewer objections.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing theories for a research question
  • Deriving hypotheses from relationships between variables
  • Examining weaknesses and anticipated reviewer objections
brycewang-stanford/Auto-Empirical-Research-Skills4.8천2026년 10월 20일 업데이트

a5

무료

Clarify the philosophical assumptions behind a research project and check whether they fit the proposed methods. Get a reasoned research stance, draft proposal wording, and guidance for explaining how the researcher's background and values shape the study.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Clarifying philosophical foundations for a research proposal
  • Explaining why the chosen research methods fit the study
  • Drafting a statement about the researcher's position
brycewang-stanford/Auto-Empirical-Research-Skills4.8천2026년 10월 20일 업데이트

Plan and draft academic papers through specialized agent roles covering literature, arguments, citations, and review. Get chapter guidance, revision roadmaps, Traditional Chinese and English abstracts, and documents formatted as LaTeX, DOCX, PDF, or Markdown.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Planning a paper chapter by chapter
  • Drafting a paper from research materials
  • Turning reviewer comments into a revision roadmap
brycewang-stanford/Auto-Empirical-Research-Skills4.8천2026년 10월 20일 업데이트

Turn a detailed outline into a philosophy or interdisciplinary manuscript. Draft chapters with repeated quality reviews, check terminology and arguments across sections, and prepare the manuscript, evaluation reports, abstract, and metadata for submission.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Draft a full paper from a detailed outline
  • Review argument and citation quality chapter by chapter
  • Check terminology and argument flow across chapters
brycewang-stanford/Auto-Empirical-Research-Skills4.8천2026년 10월 20일 업데이트

Simulate academic peer review through five reviewer roles tailored to the paper's field. Receive separate critiques, an editorial decision, and a prioritized revision roadmap, or check whether a revised manuscript addresses earlier comments.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review a manuscript before journal submission
  • Examine research methods and statistical validity
  • Challenge core arguments and alternative explanations
brycewang-stanford/Auto-Empirical-Research-Skills4.8천2026년 10월 20일 업데이트

brycewang-stanford의 스킬 모두 보기

이 스킬의 문제 신고