科研 Skill

LaTeX 回归表生成器

latex-tables

生成经济学论文回归表

官方收录发布者 meleantonio-awesome-econ-ai-stuff安全审核通过v0.1.1更新于 2026-09-02

Skill 说明

生成出版级 LaTeX 回归表(经济学) | 输入:回归结果对象 | 输出:出版级 LaTeX 表格代码

SKILL.md

LaTeX Tables

Purpose

This skill creates clean, publication-ready tables in LaTeX for regression results and summary statistics, using standard academic formatting.

When to Use

  • Converting model output into LaTeX tables
  • Standardizing table style across a paper
  • Adding notes, significance stars, and labels

Instructions

Follow these steps to complete the task:

Step 1: Understand the Context

Before generating any code, ask the user:

  • What type of table is needed (regression, summary stats, balance)?
  • What software produced the results (Stata, R, Python)?
  • Which formatting style is required (journal-specific, AEA, etc.)?

Step 2: Generate the Output

Based on the context, generate LaTeX code that:

  1. Uses booktabs for clean horizontal rules
  2. Includes labels and captions for referencing in the paper
  3. Adds notes for standard errors and significance
  4. Aligns numeric columns for readability

Step 3: Verify and Explain

After generating output:

  • Explain how to compile the table
  • Highlight any assumptions in the formatting
  • Suggest refinements for journal submission
  • Verify that the generated snippet contains no undefined LaTeX control sequences

Example Prompts

  • "Create a regression table with three models in LaTeX"
  • "Format summary statistics with mean and sd columns"
  • "Add significance stars and standard error notes"

Example Output

% ============================================
% Regression Table
% ============================================
\begin{table}[htbp]\centering
\caption{Effect of Treatment on Outcome}
\label{tab:main_results}
\begin{tabular}{lccc}
\toprule
 & (1) & (2) & (3) \\
\midrule
Treatment & 0.125*** & 0.118*** & 0.102** \\
 & (0.041) & (0.039) & (0.046) \\
Controls & No & Yes & Yes \\
Fixed Effects & No & Yes & Yes \\
\midrule
Observations & 2,145 & 2,145 & 2,145 \\
R-squared & 0.18 & 0.24 & 0.31 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item Notes: Standard errors in parentheses. * p<0.10, ** p<0.05, *** p<0.01.
\end{tablenotes}
\end{table}

Requirements

Software

  • LaTeX distribution (TeX Live or MikTeX)

Packages

  • booktabs
  • threeparttable (optional for notes)

Best Practices

  1. Keep tables compact and readable
  2. Use consistent notation for standard errors and stars
  3. Provide clear captions and labels

Common Pitfalls

  • Overly wide tables that do not fit the page
  • Missing notes for standard errors
  • Inconsistent labeling across tables

References

Changelog

v1.0.1

  • Added an explicit LaTeX control-sequence verification step for the SpeedClaw update-flow test.

v1.0.0

  • Initial release

常见问题

LaTeX 回归表生成器能做什么?

生成出版级 LaTeX 回归表(经济学) | 输入:回归结果对象 | 输出:出版级 LaTeX 表格代码。

如何安装LaTeX 回归表生成器?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「LaTeX 回归表生成器」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

LaTeX 回归表生成器需要哪些权限?

该科研 Skill声明需要:本地文件。安装前会再次列出,由你确认后才会生效。

LaTeX 回归表生成器经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。