Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/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", "跑控制变量组合", "暴力搜索", "调控制变量".
Passed 9 of 15 test cases with the skill, and 7 of 15 without it.
and 6 more in the full report
8 fixed5 passed either way4 still failing5 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
Generate the parallel search script for 'C:\data\panel.dta', Y=Y, X=X, mandatory=M1, optional=O1 O2, cluster=id without specifying worker count.
| Checked | Without skill | With skill |
|---|---|---|
| Populates <<N_WORKERS>> placeholder with default value 8 | Missed | Passed |
The instructions your model reads when the skill loads.
This skill generates a parallelised Stata .do file that:
tuplesreghdfe (or user-specified command) for each combination across N parallel Stata instancesImportant: 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.
Ask the user for the following. Items marked (required) must be provided; others have defaults.
| Parameter | Description | Default |
|---|---|---|
| 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_WORKERS | Number of parallel Stata instances | 8 |
| significance level | Two-tailed alpha | 0.01 |
| model command | Estimation command | reghdfe |
| absorb | Fixed effects specification | absorb(<<CLUSTER>> year) |
| vce | Variance-covariance specification | vce(cluster <<CLUSTER>>) |
| STATA_EXE | Path to Stata executable | E:\Stata\StataMP-64.exe |
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.<data_dir>\控制变量搜索_并行.do by default, placed next to the data file.After collecting parameters:
test cases passed, vs 7 / 15 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.