Econometrics skill for instrumental variables and treatment effect estimation.

Custom licenceAuto-check passedResearch & Science

Install Iv Estimation

skills CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill iv-estimation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install brycewang-stanford/Auto-Empirical-Research-Skills iv-estimation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/67-econfin-workflow-toolkit/iv-estimation .claude/skills/iv-estimation && rm -rf skills-src

Use ~/.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/

Facts

Skill name
iv-estimation
GitHub stars
4.5k
Token cost
~1.8k tokens
SKILL.md length
519 words
Files
2 (incl. references)
Skills in repo
383
Repo updated
First seen
Licence
Custom licence

At a glance

Econometrics skill for instrumental variables and treatment effect estimation.

  • Works in 3 steps: Relevance: Cov(Z, X) ≠ 0 — Z must be… → Exclusion restriction: Cov(Z, ε) = 0 — Z… → Independence: Z is as-good-as-randomly…
  • Asks about: instrumental variables
  • SKILL.md covers When to Use IV vs PSM, IV / 2SLS Framework, Key Diagnostic Tests and Propensity Score Matching (PSM), plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Iv Estimation is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Econometrics skill for instrumental variables and treatment effect estimation. Activates when the user asks about: "instrumental variables", "IV estimation", "2SLS", "two-stage least squares", "endogeneity", "weak instruments", "first stage", "Sargan test", "overidentification", "propensity score matching", "PSM", "average treatment effect", "ATT", "LATE", "local average treatment effect", "endogenous regressor", "instrument validity", "工具变量", "两阶段最小二乘", "内生性", "弱工具变量", "倾向得分匹配", "平均处理效应", "处理效应", "局部平均处理效应"

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/iv-reference.md`).

It sits in Research & Science, covering Econometrics and empirical research. The repository describes itself as: 🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI…

When your agent uses it

  • Asks about: instrumental variables
  • Two-stage least squares
  • Weak instruments
  • Overidentification

Example prompts

  • “instrumental variables”
  • “IV estimation”
  • “two-stage least squares”
  • “/iv-estimation”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Relevance: Cov(Z, X) ≠ 0 — Z must be correlated with the endogenous regressor
  2. Exclusion restriction: Cov(Z, ε) = 0 — Z affects Y only through X (cannot be tested directly)
  3. Independence: Z is as-good-as-randomly assigned (exogenous)

What it can do on your machine

Read from SKILL.md and the folder at commit 9fa87d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python, r and stata).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Iv Estimation loads about 1.8k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 132 tokens; SKILL.md has 519 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~132
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

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.

Safety

Auto-check passed

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.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 519 words (~1,750 tokens).

“This skill covers IV/2SLS estimation and propensity score matching (PSM) for causal inference when treatment is endogenous. It helps identify valid instruments, run 2SLS, test instrument validity, and implement PSM.”

— opening of SKILL.md by brycewang-stanford, Custom licence
name
iv-estimation

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in skills/67-econfin-workflow-toolkit/iv-estimation of brycewang-stanford/Auto-Empirical-Research-Skills.

  • SKILL.md
  • references/iv-reference.md

Open the folder on GitHubat commit 9fa87d8

Compare with similar skills

Iv Estimation 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.

Iv Estimation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Iv Estimation this skillbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~1.8kAutomated safety check: PassCustom licence
Statadylantmoore/stata-skill2911 repos~4.2kAutomated safety check: PassCustom licence
Stata C Pluginsdylantmoore/stata-skill2911 repos~5.8kAutomated safety check: PassCustom licence
Example Datasetspymc-labs/CausalPy1.2k—~587Automated safety check: PassApache-2.0
Stata AuditSepineTam/mcp-for-stata264—~1.2kAutomated safety check: PassAGPL-3.0
Stata Skill Contributordylantmoore/stata-skill2911 repos~2.4kAutomated safety check: PassCustom licence

Similar skills

  • 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…

    291 GitHub starsUsed in 1 repo~4.2k tokens
    Research & ScienceAuto-check passed
  • Stata C Plugins

    dylantmoore/stata-skill

    Develop high-performance C/C++ plugins for Stata using the stplugin.h SDK.

    291 GitHub starsUsed in 1 repo~5.8k tokens
    Research & ScienceAuto-check passed
  • Example Datasets

    pymc-labs/CausalPy

    Load built-in CausalPy example datasets for demos, tutorials, tests, and quick causal-analysis prototypes.

    1.2k GitHub stars~587 tokensUpdated today
    Research & ScienceAuto-check passed
  • Stata Audit

    SepineTam/mcp-for-stata

    Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.

    264 GitHub stars~1.2k tokensUpdated 3 days ago
    Research & ScienceAuto-check passed
  • Stata Skill Contributor

    dylantmoore/stata-skill

    Guide for contributing to the stata-skill project. An agent skill from dylantmoore/stata-skill.

    291 GitHub starsUsed in 1 repo~2.4k tokens
    Research & ScienceAuto-check passed
  • Diagnostic Dofile

    SepineTam/mcp-for-stata

    A skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.

    264 GitHub stars~1.2k tokensUpdated 3 days ago
    Research & ScienceAuto-check passed

More from brycewang-stanford/Auto-Empirical-Research-Skills

All 383 skills in this repo
  • Aer Consistency

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when auditing a finished or near-finished AER, AER:Insights, or AEJ manuscript for internal consistency: headline numbers across abstract, introduction, results, and tables…

    4.5k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Latex Paper En

    brycewang-stanford/Auto-Empirical-Research-Skills

    English LaTeX academic paper assistant for existing .tex projects.

    4.5k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Bayesian Workflow

    brycewang-stanford/Auto-Empirical-Research-Skills

    Opinionated Bayesian modeling workflow with PyMC and ArviZ. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.5k GitHub stars~3.5k tokensUpdated 4 days ago
    Auto-check passed
  • Daily Paper Generator

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when the user asks to "generate daily paper", "search arXiv for EEG papers", "find EEG decoding papers", "review brain-computer interface papers", or wants to create paper…

    4.5k GitHub stars~2.2k tokensUpdated 4 days ago
    Auto-check passed
  • Five Questions

    brycewang-stanford/Auto-Empirical-Research-Skills

    Deeply analyze any empirical economics PDF using the five-question framework (五问框架): research question, identification strategy, core estimand, robustness logic, and scholarly contribution.

    4.5k GitHub stars~1.7k tokensUpdated 4 days ago
    Auto-check: notes
  • Kaggle Research

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an…

    4.5k GitHub stars~868 tokensUpdated 4 days ago
    Auto-check passed

Questions about Iv Estimation

What does Iv Estimation do?

Econometrics skill for instrumental variables and treatment effect estimation. Iv Estimation is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Econometrics skill for instrumental variables and treatment effect estimation.

When should I use Iv Estimation?

Iv Estimation fits situations like: asks about: instrumental variables; two-stage least squares; weak instruments; overidentification.

How do I install Iv Estimation in Claude Code?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill iv-estimation -a claude-code`. Or copy the skill folder (skills/67-econfin-workflow-toolkit/iv-estimation in brycewang-stanford/Auto-Empirical-Research-Skills) into .claude/skills/iv-estimation in your project. Claude Code loads it when a task matches its description.

How do I install Iv Estimation in Codex?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill iv-estimation -a codex`. Or copy the skill folder (skills/67-econfin-workflow-toolkit/iv-estimation in brycewang-stanford/Auto-Empirical-Research-Skills) into .agents/skills/iv-estimation in your project. Codex loads it when a task matches its description.

Can I use Iv Estimation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill iv-estimation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/iv-estimation, .gemini/skills/iv-estimation, .github/skills/iv-estimation and .opencode/skills/iv-estimation in your project.

What does Iv Estimation need to run?

SKILL.md names no scripts, command-line tools or credentials: Iv Estimation is instructions for the agent only. Our summary lists: Python 3.

Does Iv Estimation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Iv Estimation safe to install?

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.

What licence does Iv Estimation use?

Iv Estimation has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Iv Estimation use?

About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.1k tokens, read only when the agent opens those files.

What are the alternatives to Iv Estimation?

Skills that share tags, products or a category with Iv Estimation: 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.

Who maintains Iv Estimation?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Auto-Empirical-Research-Skills, which has 4,542 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on October 5, 2026.

Source: brycewang-stanford/Auto-Empirical-Research-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.