regression-table
Formats estimation output as a publication-quality regression table with stars, SEs, and fit statistics. Use when creating a results table.
它会碰到什么
扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Format Regression Table
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)
- 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.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 3,829
本站分层T1
该仓技能数1161
原文件路径
skills/29-quarcs-lab-project20XXy/dot-claude/skills/regression-table/SKILL.md同一个仓库里的其他技能
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-R
- Full-empirical-analysis-skill-Stata
- auto-empirical-research-skills
- StatsPAI_skill
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-Stata
- Full-empirical-analysis-skill-R
- academic-paper-composer
- academic-paper-strategist
- medical-imaging-review
- paper-slide-deck