panel-data

Guide panel data model selection and interpretation for longitudinal econometric analyses.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/sheehe/coase --skill panel-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: panel-data
Source: https://github.com/sheehe/coase/tree/main/%E5%AE%9E%E8%AF%81%E7%A7%91%E7%A0%94%E6%8F%92%E4%BB%B6/econometrics/econometrics/skills/panel-data
Command: npx skills add https://github.com/sheehe/coase --skill panel-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Identify the right panel data model for longitudinal data and interpret results.

Core Features & Use Cases

  • Guidance to select between pooled OLS, fixed effects, random effects, and two-way fixed effects based on data structure and Hausman diagnostics.
  • Templates and workflows in Python, R, and Stata to fit common panel-data specifications and run diagnostics (HD, AR tests, DS tests).
  • Use case: from a panel of entities over time, determine whether to use FE, RE, or two-way FE and interpret within-unit effects.

Quick Start

Ask me to fit a two-way fixed effects model to your panel data and interpret the within-entity and time effects.

Frequently Asked Questions about panel-data

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

FAQPage Schema
How do I choose between fixed effects and random effects for panel data?

Select pooled OLS, fixed effects, random effects, or two-way fixed effects models by analyzing your longitudinal data structure and running Hausman diagnostics. The Skill provides decision rules to determine whether within-unit effects or time effects apply.

When should I use a two-way fixed effects model instead of pooled OLS?

Use a two-way fixed effects model instead of pooled OLS when your panel data exhibits both entity-specific and time-specific unobserved heterogeneity. This approach controls for within-entity and time effects simultaneously across your longitudinal observations.

How do I run Hausman diagnostics for econometric analyses in Python, R, and Stata?

You can run Hausman diagnostics for econometric analyses using provided code templates for Python, R, and Stata. The Skill specifies procedural criteria to execute the tests and interpret whether fixed or random effects fits your panel data better.

Can I interpret within-entity effects from a longitudinal panel dataset?

Yes, you can interpret within-entity effects from a longitudinal panel dataset by fitting fixed effects or two-way fixed effects specifications. The Skill guides model selection and provides interpretation rules for these within-unit effects across entities over time.

What are the limitations of using pooled OLS for panel data?

The limitation of using pooled OLS for panel data is that it ignores unobserved entity-specific and time-specific heterogeneity. Without fixed or random effects modeling, your econometric estimates may suffer from omitted variable bias across longitudinal observations.