r-econometrics

Generate R econometric code for IV, DiD, and RDD designs with fixest.

203|27|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/franklee16/academic-research-skills --skill r-econometrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-econometrics
Source: https://github.com/franklee16/academic-research-skills/tree/main/data-analysis/r-econometrics
Command: npx skills add https://github.com/franklee16/academic-research-skills --skill r-econometrics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces the friction of running credible econometric causal-inference analyses in R by producing well-specified models with appropriate diagnostics and publication-ready outputs.

Core Features & Use Cases

  • Causal design support: Builds R workflows for IV, DiD, and RDD based on the identification strategy.
  • Modern fixed-effects estimation: Uses fixest (feols) to support panel models with flexible fixed effects.
  • Diagnostics and reporting: Encourages first-stage/weak instrument checks for IV, parallel-trends/event-study visuals for DiD, and RDD bandwidth/density considerations.
  • Publication-ready tables: Exports regression results via modelsummary or etable-style workflows.

Quick Start

Ask for a DiD analysis that estimates treatment effects using state and year fixed effects with standard errors clustered at the state level and returns an event-study plot plus an exportable regression table.

Frequently Asked Questions about r-econometrics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate a Difference-in-Differences model in R with state and year fixed effects?

Generate publication-ready econometric tables in R using modelsummary or etable workflows, which format fixest feols regression outputs with clustered standard errors into exportable event-study and causal inference reports.

What is the best way to run an IV analysis in R and check for weak instruments?

The best way to run an IV analysis in R is to estimate the model using fixest and explicitly evaluate first-stage instrument strength with weak instrument diagnostics before exporting the publication-ready regression tables.

How do I set up a Regression Discontinuity Design in R with proper bandwidth selection?

To set up a Regression Discontinuity Design in R, configure the RDD bandwidth and density considerations based on the identification strategy, then estimate the local effects and format the results into an exportable table.

Can I use fixest for panel data causal inference and robust standard error estimation?

Yes, you can use fixest for panel data causal inference because the feols estimation supports flexible fixed effects and allows you to specify clustered or robust standard errors for credible causal inference tasks.

How do I export fixest regression results into publication-ready tables in R?

Export fixest regression results into publication-ready tables in R by using modelsummary or etable workflows, which structure the robust inference outputs from your IV, DiD, or RDD models for direct academic export.