R Econometrics
Guided R workflow for IV, DiD, and RDD analyses with fixest-based code and built-in diagnostics.
- CCM score
- 57 of 100
- skills.sh installs
- 349
- GitHub stars
- 684
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the full analysis flow: research-design intake, model code generation, output structure, and documentation of choices
- Includes IV first-stage F-statistics, DiD parallel-trends and event-study plots, and RDD bandwidth and density tests
- Enforces clustered standard errors, prefers
feolsoverlmfor panel data, and flags TWFE pitfalls with staggered treatment - Designed for economists producing publication-ready regression tables with
modelsummaryandetable
Install
$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill r-econometrics -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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:
- What is your identification strategy? (IV, DiD, RDD, or simple regression)
- What is the unit of observation? (individual, firm, country-year, etc.)
- What fixed effects do you need? (entity, time, two-way)
- How should standard errors be clustered?
Step 2: Generate Analysis Code
Based on the research design, generate R code that:
Details
- Repository
- github.com/meleantonio/awesome-econ-ai-stuff
- Categories
- Data Science & Analytics, Research & Academic
- First seen
- Jun 3, 2026
Questions
What does the r-econometrics skill do?
The r-econometrics skill runs Instrumental Variables, Difference-in-Differences and Regression Discontinuity Design analyses in R with proper diagnostics. It generates publication-ready code that uses the fixest package and robust or clustered standard errors.
How do I install the r-econometrics skill?
Run npx -y skills add meleantonio/awesome-econ-ai-stuff --skill r-econometrics -y in a project. Once installed, r-econometrics asks about your identification strategy, unit of observation, fixed effects and clustering before it writes the R code.
What does r-econometrics need to run?
r-econometrics needs R 4.0 or later and the fixest, modelsummary, tidyverse and ggplot2 packages. Those can be installed in R with install.packages on fixest, modelsummary and tidyverse.
Who is the r-econometrics skill for?
r-econometrics is for economists who run causal inference and panel data analyses in R. It helps them build IV, DiD and RDD specifications with event studies and regression tables for publication.
More from meleantonio/awesome-econ-ai-stuff
All 9Similar to R Econometrics
More Data Science & Analyticsstata-regressionSkillmeleantonio/awesome-econ-ai-stuff434 installsStructured Stata regression workflow that produces publication-ready tables with esttab and reghdfe support.
empirical-analysis-rPluginbrycewang-stanford/Auto-Empirical-Research-Skills5.1K starsExplicit 8-step empirical-analysis pipeline in the modern tidyverse + econometrics R stack (dplyr + haven + fixest + did + synthdid + rdrobust + MatchIt + Weigh
stata-data-cleaningSkillmeleantonio/awesome-econ-ai-stuff362 installsReproducible Stata do-file generator for cleaning messy economic datasets, with setup, validation, and documentation.
statsmodelsSkillk-dense-ai/scientific-agent-skills2.5K installsPython statistical modeling library covering regression, GLMs, discrete choice, and time series with explicit inference and diagnostics.
statistical-analysisSkillk-dense-ai/scientific-agent-skills2.7K installsGuided statistical analysis that selects tests, checks assumptions, reports effect sizes, and formats APA results.
Causal InferenceSkillaj-geddes/useful-ai-prompts546 installsPractical causal inference toolkit for estimating treatment effects from observational data, with worked Python examples.