一键导入
regression-table
Formats estimation output as a publication-quality regression table with stars, SEs, and fit statistics. Use when creating a results table.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Formats estimation output as a publication-quality regression table with stars, SEs, and fit statistics. Use when creating a results table.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold a Quarto analysis notebook (generic or method-specific — DiD, IV, RDD, LASSO, Panel FE), register it in _quarto.yml, apply publication-quality figure styling, and generate dataset codebooks. Use when starting a new analysis notebook.
Manage the project's literature workflow — ideate research questions, run structured literature reviews, add citations to references.bib, write annotation notes in references/, and audit citation integrity. Use for any bibliography or literature task.
Audit a Quarto manuscript or a single notebook — freeze freshness, data-path existence, citation integrity, figure/table export presence, placeholder and anonymization checks. Produces a scored review report under notes/. Read-only — never modifies notebooks, data, or the manuscript.
Build publication-quality regression and robustness tables from notebook estimation output, exported to tables/ as CSV + Markdown + LaTeX. Use when creating a results table.
Draft and revise manuscript prose for index.qmd — sections, the abstract, regression-result interpretation, and referee responses. Use when writing or revising the manuscript.
Reads the manuscript and notebooks to generate a structured abstract. Use when writing or updating the abstract.
| name | regression-table |
| description | Formats estimation output as a publication-quality regression table with stars, SEs, and fit statistics. Use when creating a results table. |
| argument-hint | <notebook> [description] |
| allowed-tools | Bash, Read, Write, Edit, Glob, Grep |
| version | 1.1.0 |
| workflow_stage | writing |
| tags | ["regression","tables","LaTeX","booktabs"] |
Create a publication-quality regression table from estimation output in a notebook.
$ARGUMENTS — a notebook reference and/or description of the table (e.g., "notebook-02 OLS results" or "main regression table with 3 specifications")Identify the source notebook and the estimation output:
pyfixest, statsmodels, linearmodels; R: fixest, lm, felm; Stata: reg, reghdfe, ivregress)Ask the user for table specifications:
Build the table manually as pipe-delimited Markdown (do NOT use pf.etable(type="md"), etable(markdown=TRUE), or esttab md — their output doesn't render correctly in the Quarto manuscript). Extract coefficients, SEs, and p-values from model objects and construct the table row by row:
| | (1) OLS | (2) FE | ... |* p<0.10, ** p<0.05, *** p<0.01Export the table in three formats to ../tables/:
<label>.md — Markdown (for {{< include >}} in manuscript)<label>.csv — CSV (for data reuse)<label>.tex — LaTeX with booktabs, following AER-style formatting conventions:
\toprule, \midrule, \bottomrule only — never \hline\cmidrule{2-4} for partial rules spanning column groups (e.g., Panel A vs Panel B)\begin{threeparttable} with notes in \begin{tablenotes}[flushleft]\footnotesize to keep notes at table widthS columns from siunitx for decimal-aligned numbers, or d{2.3} for fixed decimal positions\tabcolsep or use \small/\footnotesize\multicolumn{N}{l}{\textit{Panel A: Description}} as a spanning header, then \midrule before Panel BTo embed in index.qmd, use {{< include >}} (NOT {{< embed >}}):
**Table N: Caption text.**
{{< include tables/<label>.md >}}
::: {.table-notes}
*Note:* Dependent variable: ... Standard errors clustered by ... in parentheses.
Significance levels: * p<0.10, ** p<0.05, *** p<0.01. All regressions include a constant (not reported).
:::
\small), reduce \tabcolsep, or split into Panel A/Panel B before shrinking further* p<0.10, ** p<0.05, *** p<0.01\hline in LaTeX: Always use booktabs commands — \hline produces thicker, less professional lines