本文へ移動
cccskills
無料GitHub で公開

Significance-Search

Parallel control variable combination search via Stata. Exhaustively searches all subsets of optional controls to find the combination that maximises |t| of the independent variable. Activates when user says: "控制变量搜索", "搜控制变量", "control variable search", "跑控制变量组合", "暴力搜索", "调控制变量".

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.8 KB
  • template.do14.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Control Variable Search Skill

This skill generates a parallelised Stata .do file that:

  1. Enumerates all subsets of optional control variables via tuples
  2. Runs reghdfe (or user-specified command) for each combination across N parallel Stata instances
  3. Ranks combinations by |t| of the independent variable
  4. Reports Top 10 and runs the best combination regression

Important: This skill only generates the .do file. It does NOT execute it. Tell the user the output path and let them run it in Stata themselves.

What to collect from the user

Ask the user for the following. Items marked (required) must be provided; others have defaults.

ParameterDescriptionDefault
data file (required)Full path to the .dta file--
dependent variable (Y) (required)Y variable name--
independent variable (X) (required)X variable of interest--
cluster variable (required)Variable for clustering SE and fixed effects--
mandatory controls (required)Controls always included--
optional controls (required)Controls to search over (all subsets)--
N_WORKERSNumber of parallel Stata instances8
significance levelTwo-tailed alpha0.01
model commandEstimation commandreghdfe
absorbFixed effects specificationabsorb(<<CLUSTER>> year)
vceVariance-covariance specificationvce(cluster <<CLUSTER>>)
STATA_EXEPath to Stata executableE:\Stata\StataMP-64.exe

Critical constraints

  • Optional controls must be <= 14 variables. With 15+ variables, tuples generates 32,768+ combinations and will freeze Stata. If the user provides more than 14, warn them and ask them to reduce or move some into mandatory controls.
  • The output .do file path is <data_dir>\控制变量搜索_并行.do by default, placed next to the data file.

How to generate

After collecting parameters:

  1. Read the template at C:\Users\Verasuna\.claude\skills\ControlVariable\template.do
  2. Replace all <<PLACEHOLDERS>> with user-provided values (see table below)
  3. Write the result to <data_dir>\控制变量搜索_并行.do
  4. Do NOT execute it. Tell the user: "do文件已生成至 <path>,请在Stata中手动运行。"

Do not modify any code logic in the template. Only replace placeholders.

Placeholder reference

<<N_WORKERS>>          e.g. 8
<<STATA_EXE>>          e.g. E:\Stata\StataMP-64.exe
<<PROJ_DIR>>           directory containing the .dta file
<<DATA_FILE>>          filename of .dta (just the name, not full path)
<<SIGNIFICANCE>>       e.g. 0.01
<<DEP_VAR>>            dependent variable (Y)
<<INDEP_VAR>>          independent variable (X)
<<MANDATORY_CONTROLS>> space-separated mandatory controls
<<OPTIONAL_CONTROLS>>  space-separated optional controls
<<MODEL_CMD>>          e.g. reghdfe
<<MODEL_ABSORB>>       e.g. absorb(stkcd year)
<<MODEL_VCE>>          e.g. vce(cluster stkcd)
<<HEARTBEAT_STALL>>    300

Typical usage

User says: "Y是GTFPEFF8,X是Size,聚类到stkcd,必选控制变量Lev,可选控制变量ROA ROE ATO Cashflow,数据文件是 C:\data\mydata.dta"

Then fill:

  • <<DEP_VAR>> = GTFPEFF8
  • <<INDEP_VAR>> = Size
  • <<MODEL_ABSORB>> = absorb(stkcd year)
  • <<MODEL_VCE>> = vce(cluster stkcd)
  • <<MANDATORY_CONTROLS>> = Lev
  • <<OPTIONAL_CONTROLS>> = ROA ROE ATO Cashflow
  • <<PROJ_DIR>> = C:\data
  • <<DATA_FILE>> = mydata.dta
  • Other placeholders use defaults

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

a1

無料

VS-Enhanced Research Question Refiner - Prevents Mode Collapse and derives differentiated research questions Enhanced VS 3-Phase process: Modal question avoidance, alternatives presentation, differentiated RQ recommendation Use when: refining research ideas, formulating research questions, clarifying scope Triggers: research question, 연구 질문, PICO, SPIDER, research idea

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

a2

無料

VS-Enhanced Theoretical Framework Architect with Critique & Visualization Full VS 5-Phase process: Modal theory avoidance, Long-tail exploration, differentiated framework presentation Absorbed A3 (Devil's Advocate) critique and A6 (Conceptual Framework Visualizer) capabilities Use when: building theoretical foundations, designing conceptual models, deriving hypotheses, critiquing frameworks, visualizing models Triggers: theoretical framework, 이론적 프레임워크, conceptual model, 개념적 모형, hypothesis derivation, critique, devil's advocate, 반론, visualization, diagram

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

a5

無料

Agent A5 - Paradigm & Worldview Advisor - Philosophical foundations for research design. Covers ontology, epistemology, axiology, and methodology alignment. Use when: establishing philosophical foundations, justifying methodological choices, writing positionality statements Triggers: paradigm, 패러다임, ontology, epistemology, worldview, 세계관, philosophical foundations, 철학적 기초

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Academic paper writing skill with 12-agent pipeline. v2.5: Style Calibration (learn author's writing voice from past papers) + Writing Quality Check (writing quality checklist for natural prose). Supports IMRaD, literature review, theoretical, case study, policy brief, and conference paper structures. APA 7.0 (default), Chicago, MLA, IEEE, Vancouver citation formats. Bilingual abstracts (zh-TW + EN). Multi-format output (LaTeX, DOCX, PDF, Markdown). Triggers on: write paper, academic paper, paper outline, write abstract, revise paper, check citations, convert to LaTeX, guide my paper, parse reviews, revision roadmap, 寫論文, 學術論文, 論文大綱, 寫摘要, 修改論文, 檢查引用, 引導我寫論文, 帶我規劃論文, 逐章規劃, 論文架構, 審查意見, 修訂路線圖.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want to: (1) write a paper from a detailed outline, (2) ensure quality control during writing, (3) maintain consistency across chapters, (4) prepare a submission-ready manuscript, or (5) systematically execute a planned paper. Triggered by phrases like 'write the paper from this outline,' 'compose the full manuscript,' 'execute the outline,' or when users have completed strategic planning (academic-paper-strategist skill) and are ready to write. Takes optimized outline as input; outputs complete manuscript with iterative quality checks.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

Multi-perspective academic paper review with dynamic reviewer personas. Simulates 5 independent reviewers (EIC + 3 peer reviewers + Devil's Advocate) with field-specific expertise. Supports full review, re-review (verification), quick assessment, methodology focus, and Socratic guided modes. Triggers on: review paper, peer review, manuscript review, referee report, review my paper, critique paper, simulate review, editorial review.

日本語の概要は準備中です。原文の説明を表示しています。

brycewang-stanford/Auto-Empirical-Research-Skills4,5972026年10月12日 更新

brycewang-stanford のスキルをすべて見る

このスキルの問題を報告する