econ-r

econ-r is a skill for Claude Code, Codex from emmanueltsallis/econ-r-mcp. It costs 95 tokens per session (1,707 once invoked), scanned A, original, MIT.

A skill for empirical analysis and econometrics, the study of relationships in data using statistical models. It uses R to support reproducible reports and requires results to come from executed code rather than guesses.

In plain words
What is it for?
Use it for regression, causal studies such as difference-in-differences or instrumental variables, forecasting, matching, diagnostics, and R-based reports.
Why use it?
It structures statistical work around a clearly defined research question, suitable data, a stated design, and diagnostic checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for regression, causal studies such as difference-in-differences or instrumental variables, forecasting, matching, diagnostics, and R-based reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emmanueltsallis/econ-r-mcp/econ-r
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add emmanueltsallis/econ-r-mcp --skill econ-r
Clone the repo
git clone --depth 1 https://github.com/emmanueltsallis/econ-r-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for econ-r

README.md
[![agentmods](https://agentmods.dev/badge/skills/emmanueltsallis/econ-r-mcp/econ-r/github.svg)](https://agentmods.dev/skills/emmanueltsallis/econ-r-mcp/econ-r)
Your own site
<a href="https://agentmods.dev/skills/emmanueltsallis/econ-r-mcp/econ-r"><img src="https://agentmods.dev/badge/skills/emmanueltsallis/econ-r-mcp/econ-r/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for econ-r

Your own site · 80×15
<a href="https://agentmods.dev/skills/emmanueltsallis/econ-r-mcp/econ-r"><img src="https://agentmods.dev/badge/skills/emmanueltsallis/econ-r-mcp/econ-r.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.01707
Opus 5.5 $0.00038 $0.00683
Sonnet 5.5 $0.00019 $0.00341
Haiku 4.5 $0.00010 $0.00171

Measured 2mo ago against content hash 6fd7aa4814fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

econ-r scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/econ-r/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

econ-r

Use this skill to conduct applied econometrics and statistics with the econ-r-mcp MCP server. The central rule is simple: do not invent empirical output. Coefficients, standard errors, p-values, diagnostics, sample counts, plots, model comparisons, and tables must come from executed R code and saved artifacts.

Default Workflow

  1. Clarify the research question only when the prompt lacks the outcome, treatment/exposure, unit, time period, or decision context needed to proceed.
  2. Define the estimand before choosing a model: association, ATE/ATT/LATE/local RD effect, forecast target, or descriptive statistic.
  3. Use inspect_dataset before modeling. Identify variables, missingness, types, candidate unit/time columns, duplicates, and sample restrictions.
  4. Identify the outcome, unit, time, treatment/exposure, instrument/running variable, controls, and clustering level.
  5. Propose a research design in plain language, including why the identifying variation is credible or why it is only associational.
  6. Run diagnostics before final interpretation: panel diagnostics for panel/DiD, first stage for IV, density/bandwidth checks for RD, stationarity checks for time series, balance/overlap checks for matching or weighting.
  7. Estimate a baseline model with an exact formula and package command.
  8. Run robustness checks that test the design, not just coefficient shopping.
  9. Generate tables/plots with create_modelsummary, model-specific table outputs, and/or render_quarto.
  10. Interpret results with clear separation between causal claims and associations.

Tool Use

  • Use health_check at the start of a new environment or when an R package/tool failure is plausible.
  • Use init_project for a new empirical workspace.
  • Use install_r_packages only for packages in the allowlist; do not suggest arbitrary package installation without updating config explicitly.
  • Use inspect_dataset before estimating models.
  • Use run_panel_diagnostics before panel fixed effects or DiD.
  • Use run_regression_fixest for OLS, fixed effects, clustered SEs, GLM-style fixest models, and baseline panel regressions.
  • Use run_iv when the design has endogenous regressors and credible instruments.
  • Use run_did for TWFE event studies or Callaway-Sant'Anna DiD.
  • Use run_rdrobust for regression discontinuity.
  • Use run_time_series_diagnostics before time-series modeling or forecasting.
  • Use create_modelsummary for publication-style model tables from saved model objects or result JSON.
  • Use render_quarto for reproducible reports.
  • Use lookup_econometrics_guidance before econometric method choices. Prefer deterministic method tags such as iv, did, rd, panel_fe, time_series, or forecasting.
  • Use lookup_econometrics_guidance with method="aer_textbook" when grounding an answer in the locally installed AER package's Applied Econometrics with R companion materials. Treat returned AER material as textbook/package guidance, not empirical output.
  • Use list_artifacts and read_artifact to inspect logs, result JSON, tables, and plots.
  • Use reproduce_run before relying on an earlier result when reproducibility matters.

Read the full file on GitHub · 109 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 109 lines · 95 tokens per session scan A 6fd7aa4814fb

Subscribe to this mod's changes

econ-r is a skill published in the GitHub repository emmanueltsallis/econ-r-mcp (0 stars, last pushed 4mo ago), licensed MIT. It adds 95 tokens to every session and 1,707 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

econ-r compared with skills from other repositories

econ-r next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
econ-remmanueltsallis/econ-r-mcpSkill04mo agoMITA95Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill35kyesterdayApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill56k6d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill33ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.8ktodayApache-2.0A205Claude Code