This generates publication-ready econometrics code in R for causal inference work. It handles IV, DiD, and RDD analyses using the fixest package, which is faster and cleaner than base lm() for panel data. The output includes proper diagnostics like first-stage F-stats for IV and parallel trends plots for DiD, plus it sets up clustered standard errors at the right level. Built by the Awesome Econ AI Community, it's aimed at economists who want rigorous code structure without reinventing the wheel each time. The event study implementation and two-way fixed effects handling are solid, though you'll still need to understand your identification strategy before asking it to generate anything.

skills.sh installs
337
GitHub stars
668
last updated
Aug 21, 2026

Install

$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill r-econometrics --agent claude-code

Installs into .claude/skills of the current project.

Files

R Econometrics

Purpose

This skill helps economists run rigorous econometric analyses in R, including Instrumental Variables (IV), Difference-in-Differences (DiD), and Regression Discontinuity Design (RDD). It generates publication-ready code with proper diagnostics and robust standard errors.

When to Use

  • Running causal inference analyses
  • Estimating treatment effects with panel data
  • Creating publication-ready regression tables
  • Implementing modern econometric methods (two-way fixed effects, event studies)

Instructions

Step 1: Understand the Research Design

Before generating code, ask the user:

  1. What is your identification strategy? (IV, DiD, RDD, or simple regression)
  2. What is the unit of observation? (individual, firm, country-year, etc.)
  3. What fixed effects do you need? (entity, time, two-way)
  4. How should standard errors be clustered?

Step 2: Generate Analysis Code

Based on the research design, generate R code that:

Sponsors

Details

Repository
github.com/meleantonio/awesome-econ-ai-stuff
Category
AI & Agent Building
First seen
Jun 3, 2026

More from meleantonio/awesome-econ-ai-stuff

All 9
1neurofoo avatarsocraticneurofoo/agent-skillsSocratic questioning to examine beliefs, uncover assumptions, and develop deeper understanding. Use to challenge thinking, evaluate proposals, or teach without 337skills.sh installs
2rstackjs avatarmigrate-to-rsbuildrstackjs/agent-skillsMigrate webpack, Vite, create-react-app (CRA/CRACO), or Vue CLI projects to Rsbuild.336skills.sh installs
3sergiodxa avatarfrontend-js-best-practicessergiodxa/agent-skillsJavaScript performance optimization guidelines. Use when writing, reviewing, or refactoring JavaScript/TypeScript code to ensure optimal performance patterns. T336skills.sh installs
4gohypergiant avataraccelint-react-best-practicesgohypergiant/agent-skillsReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimiz335skills.sh installs
5tech-leads-club avatarmermaid-studiotech-leads-club/agent-skillsExpert Mermaid diagram creation, validation, and rendering with dual-engine output (SVG/PNG/ASCII). Supports all 20+ diagram types including C4 architecture, AW335skills.sh installs
6win4r avatarlessonwin4r/memory-lancedb-prolesson335skills.sh installs