Stata
dylantmoore/stata-skill
Comprehensive Stata reference for writing correct .do files, data management, econometrics, causal inference, graphics, Mata programming, and 20 community packages (reghdfe, estout, did, rdrobust…
Comprehensive Stata reference covering syntax, econometrics, and 20+ packages
$ npx skills add wentorai/research-plugins --skill stata-reference-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wentorai/research-plugins stata-reference-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analysis/econometrics/stata-reference-guide .claude/skills/stata-reference-guide && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "stata-reference-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guide into .claude/skills/stata-reference-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-reference-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wentorai/research-plugins --skill stata-reference-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wentorai/research-plugins stata-reference-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/analysis/econometrics/stata-reference-guide .agents/skills/stata-reference-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "stata-reference-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guide into .agents/skills/stata-reference-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-reference-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill stata-reference-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wentorai/research-plugins stata-reference-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/analysis/econometrics/stata-reference-guide .cursor/skills/stata-reference-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "stata-reference-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guide into .cursor/skills/stata-reference-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-reference-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wentorai/research-plugins.git --path skills/analysis/econometrics/stata-reference-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wentorai/research-plugins --skill stata-reference-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wentorai/research-plugins stata-reference-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/analysis/econometrics/stata-reference-guide .gemini/skills/stata-reference-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "stata-reference-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guide into .gemini/skills/stata-reference-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-reference-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wentorai/research-plugins stata-reference-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wentorai/research-plugins --skill stata-reference-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/analysis/econometrics/stata-reference-guide .github/skills/stata-reference-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "stata-reference-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guide into .github/skills/stata-reference-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-reference-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill stata-reference-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wentorai/research-plugins stata-reference-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/analysis/econometrics/stata-reference-guide .opencode/skills/stata-reference-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "stata-reference-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/econometrics/stata-reference-guide into .opencode/skills/stata-reference-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-reference-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
stata-reference-guideComprehensive Stata reference covering syntax, econometrics, and 20+ packages
Stata Reference Guide is an agent skill from wentorai/research-plugins. Comprehensive Stata reference covering syntax, econometrics, and 20+ packages
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Research & Science, covering Econometrics and empirical research. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are stata).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
raw.githubusercontent.comAlso links to:
stata.comstats.oarc.ucla.edustata-journal.comideas.repec.orggithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Stata Reference Guide loads about 2k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 200 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 200 words, ~1,973 tokens.
.claude/skills/stata-reference-guide/SKILL.md (or your agent's skills folder).Stata is the dominant statistical software in economics, political science, public health, and sociology research. This guide provides a comprehensive reference covering core syntax, data management, estimation commands, causal inference methods, graphics, Mata programming, and 20+ community-contributed packages. It is designed as a progressive-disclosure reference: use the section relevant to your current task rather than reading end-to-end.
* Import CSV with variable names in first row
import delimited "data.csv", clear varnames(1)
* Import Excel (specific sheet and cell range)
import excel "workbook.xlsx", sheet("Sheet1") cellrange(A1:Z1000) firstrow clear
* Import Stata format
use "dataset.dta", clear
* Export to CSV
export delimited "output.csv", replace
* Save as Stata format
save "cleaned_data.dta", replace* Generate new variables
gen log_income = ln(income)
gen age_sq = age^2
gen treatment_post = treatment * post
* Recode and label
recode education (1/12 = 1 "HS or less") (13/16 = 2 "College") (17/20 = 3 "Graduate"), gen(edu_cat)
label variable edu_cat "Education Category"
* String operations
gen first_name = word(full_name, 1)
gen year_str = string(year)
destring price_str, gen(price) force
* Date handling
gen date = date(date_str, "YMD")
format date %td
gen year = year(date)
gen quarter = quarter(date)* Identify and handle duplicates
duplicates report id year
duplicates tag id year, gen(dup_flag)
duplicates drop id year, force
* Missing values
misstable summarize
misstable patterns
replace income = . if income < 0 // recode impossible values
* Merge datasets
merge 1:1 id year using "panel_data.dta", keep(match master) nogen
merge m:1 state year using "state_controls.dta", keep(match master) nogen
* Reshape between wide and long
reshape long income_, i(id) j(year)
reshape wide income, i(id) j(year)
* Collapse to group level
collapse (mean) avg_income=income (sd) sd_income=income (count) n=income, by(state year)* OLS with robust standard errors
reg y x1 x2 x3, robust
* Clustered standard errors
reg y x1 x2 x3, cluster(firm_id)
* Fixed effects (within estimator)
xtreg y x1 x2 x3, fe cluster(firm_id)
xtset firm_id year // must declare panel structure first
* Absorbing high-dimensional FE (reghdfe)
reghdfe y x1 x2 x3, absorb(firm_id year) cluster(firm_id)
* Instrumental variables (2SLS)
ivregress 2sls y x1 x2 (endog_var = instrument1 instrument2), robust
estat firststage
estat overid* Panel setup
xtset firm_id year
* Hausman test (FE vs RE)
quietly xtreg y x1 x2, fe
estimates store fe
quietly xtreg y x1 x2, re
estimates store re
hausman fe re
* Dynamic panel GMM (xtabond2)
xtabond2 y L.y x1 x2, gmm(L.y, lag(2 4)) iv(x1 x2) robust twostep
* Test for serial correlation and overidentification
estat abond // Arellano-Bond test
estat sargan // Sargan/Hansen test* Difference-in-Differences
gen did = treatment * post
reg y did treatment post controls, cluster(state)
* Modern DiD with staggered treatment (csdid)
csdid y x1 x2, ivar(id) time(year) gvar(first_treat) method(dripw)
csdid_plot // event study plot
* Regression Discontinuity (rdrobust)
rdrobust y running_var, c(0) p(1) kernel(triangular)
rdplot y running_var, c(0) p(1)
* Propensity Score Matching (psmatch2)
psmatch2 treatment x1 x2 x3, outcome(y) logit caliper(0.05) common
pstest x1 x2 x3 // balance check
* Synthetic Control (synth)
synth y x1 x2 x3 y(1990) y(1991) y(1992), trunit(1) trperiod(1993) fig* Logit/Probit
logit binary_y x1 x2, robust
margins, dydx(*) // average marginal effects
probit binary_y x1 x2, robust
margins, dydx(*)
* Ordered logit
ologit ordered_y x1 x2, robust
margins, predict(outcome(3)) dydx(x1)
* Tobit (censored regression)
tobit y x1 x2, ll(0)
* Poisson and Negative Binomial
poisson count_y x1 x2, robust
nbreg count_y x1 x2, robust* Install from SSC (Statistical Software Components)
ssc install reghdfe
ssc install estout
ssc install coefplot
ssc install csdid
ssc install rdrobust
ssc install psmatch2
ssc install synth
ssc install ivreg2
ssc install xtabond2
ssc install winsor2
ssc install gtools
ssc install ftools
ssc install binscatter
ssc install binsreg
ssc install grstyle
* Install from GitHub
net install did_multiplegt, from("https://raw.githubusercontent.com/chaisemartinDehejia/did_multiplegt/main")* estout / esttab — formatted regression tables
eststo clear
eststo: reg y x1 x2, robust
eststo: reg y x1 x2 x3, robust
eststo: reg y x1 x2 x3, cluster(firm_id)
esttab, se star(* 0.10 ** 0.05 *** 0.01) ///
title("Main Results") label replace ///
scalars("r2 R-squared" "N Observations")
* Export to LaTeX
esttab using "table1.tex", replace booktabs ///
se star(* 0.10 ** 0.05 *** 0.01) label
* Export to CSV/Excel
esttab using "table1.csv", replace se
* coefplot — coefficient visualization
coefplot est1 est2 est3, drop(_cons) xline(0) ///
title("Coefficient Estimates") legend(order(1 "Model 1" 2 "Model 2" 3 "Model 3"))* Scatter with fit line
twoway (scatter y x) (lfit y x), title("Y vs X") ///
xtitle("X Variable") ytitle("Y Variable")
* Event study plot
coefplot, vertical drop(_cons) yline(0) ///
title("Event Study") xtitle("Periods Relative to Treatment")
* Binned scatter (binscatter)
binscatter y x, controls(z1 z2) nquantiles(20) ///
title("Binned Scatter") xtitle("X") ytitle("Y")
* Kernel density
kdensity income if year==2020, normal ///
title("Income Distribution") xtitle("Income")
* Graph styling (grstyle)
grstyle init
grstyle set plain, horizontal grid
grstyle color background white
grstyle set color economist* Basic Mata usage
mata:
// Matrix operations
X = st_data(., ("x1", "x2", "x3"))
y = st_data(., "y")
n = rows(X)
// OLS by hand
X = X, J(n, 1, 1) // add constant
beta = invsym(X'X) * X'y
e = y - X * beta
sigma2 = (e'e) / (n - cols(X))
V = sigma2 * invsym(X'X)
se = sqrt(diagonal(V))
beta, se
endset seed 12345preserve/restore for temporary data manipulations within a do-filelog using "analysis_log.smcl", replaceversion 17 (or your version) for reproducibilitytempfile merged then save merged'`timer on 1 / timer off 1 / timer list for long-running operationsgtools (greshape, gcollapse, gegen) for 5-10x speedups on large datasets© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/analysis/econometrics/stata-reference-guide of wentorai/research-plugins.
Open the folder on GitHubat commit bf44b3c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.
Stata Reference Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Stata Reference Guide this skillwentorai/research-plugins | 298 | 1 repos | ~2k | Automated safety check: Pass | MIT | |
| Statadylantmoore/stata-skill | 291 | 1 repos | ~4.2k | Automated safety check: Pass | Custom licence | |
| Stata C Pluginsdylantmoore/stata-skill | 291 | 1 repos | ~5.8k | Automated safety check: Pass | Custom licence | |
| Example Datasetspymc-labs/CausalPy | 1.2k | — | ~587 | Automated safety check: Pass | Apache-2.0 | |
| Stata AuditSepineTam/mcp-for-stata | 264 | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| Stata Skill Contributordylantmoore/stata-skill | 291 | 1 repos | ~2.4k | Automated safety check: Pass | Custom licence |
dylantmoore/stata-skill
Comprehensive Stata reference for writing correct .do files, data management, econometrics, causal inference, graphics, Mata programming, and 20 community packages (reghdfe, estout, did, rdrobust…
dylantmoore/stata-skill
Develop high-performance C/C++ plugins for Stata using the stplugin.h SDK.
pymc-labs/CausalPy
Load built-in CausalPy example datasets for demos, tutorials, tests, and quick causal-analysis prototypes.
SepineTam/mcp-for-stata
Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.
dylantmoore/stata-skill
Guide for contributing to the stata-skill project. An agent skill from dylantmoore/stata-skill.
maxwell2732/paper-replicate-agent-demo
Comprehensive manuscript review covering argument structure, econometric specification, citation completeness, and potential referee objections
wentorai/research-plugins
Craft structured research abstracts that maximize clarity and journal acceptance
wentorai/research-plugins
Manage academic citations across BibTeX, APA, MLA, and Chicago formats
wentorai/research-plugins
Summarize academic papers with structured extraction of key elements
wentorai/research-plugins
Evidence-based study techniques for academic learning and retention
wentorai/research-plugins
Adjust writing tone and register for academic audiences and venues
wentorai/research-plugins
Academic translation, post-editing, and Chinglish correction guide
Categories
Comprehensive Stata reference covering syntax, econometrics, and 20+ packages. Stata Reference Guide is an agent skill from wentorai/research-plugins.
Stata Reference Guide fits situations like: tasks that involve Econometrics and empirical research.
Run `npx skills add wentorai/research-plugins --skill stata-reference-guide -a claude-code`. Or copy the skill folder (skills/analysis/econometrics/stata-reference-guide in wentorai/research-plugins) into .claude/skills/stata-reference-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wentorai/research-plugins --skill stata-reference-guide -a codex`. Or copy the skill folder (skills/analysis/econometrics/stata-reference-guide in wentorai/research-plugins) into .agents/skills/stata-reference-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill stata-reference-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stata-reference-guide, .gemini/skills/stata-reference-guide, .github/skills/stata-reference-guide and .opencode/skills/stata-reference-guide in your project.
SKILL.md names no scripts, command-line tools or credentials: Stata Reference Guide is instructions for the agent only.
SKILL.md names 6 domains. In commands or code: raw.githubusercontent.com; the agent is likely to contact it when it follows the instructions. As links in the text: stata.com, stats.oarc.ucla.edu, stata-journal.com, ideas.repec.org and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Stata Reference Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Stata Reference Guide: Stata (dylantmoore/stata-skill, 291 stars), Stata C Plugins (dylantmoore/stata-skill, 291 stars), Example Datasets (pymc-labs/CausalPy, 1.2k stars) and Stata Audit (SepineTam/mcp-for-stata, 264 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.
Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.