panel-data

Estimate pooled, fixed, random, and dynamic panel models with linearmodels.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill panel-data-xjtulyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: panel-data
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/07-economics/panel-data
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill panel-data-xjtulyc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires linearmodels, pandas, numpy, statsmodels, scipy, tabulate.

What problem does it solve?

This Skill solves the problem of running correct econometric estimation for panel datasets (entities observed over time) so you can obtain reliable coefficients and diagnostics across pooled, fixed-, random-, and dynamic specifications.

Core Features & Use Cases

  • Pooled OLS, Fixed Effects (FE), Random Effects (RE): Estimate baseline, within-entity, and GLS-style models using Python’s linearmodels with practical examples on firm-year panels.
  • Model selection and inference: Run a Hausman specification test, compute clustered/robust standard errors, and generate side-by-side regression comparison tables.
  • Dynamic panels and validation checks: Fit Arellano-Bond (dynamic) GMM-style IV workflows and perform common panel diagnostics such as unit-root testing and serial correlation checks (Wooldridge-style).

Quick Start

Use the panel-data skill to estimate a fixed-effects model with clustered standard errors on a firm-year dataset and print a Hausman decision versus random effects.

Frequently Asked Questions about panel-data

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

FAQPage Schema
How do I estimate fixed effects and random effects models for panel data in Python?

To estimate fixed effects and random effects models for panel data in Python, use the linearmodels library to fit within-entity and GLS specifications on a MultiIndex (entity, time) DataFrame. The workflow supports clustered standard errors and side-by-side regression comparison tables.

What is the best way to run a Hausman test comparing fixed and random effects specifications?

The best way to run a Hausman specification test is to estimate both fixed and random effects models, then generate decision statistics comparing their coefficients. This skill computes the Hausman test directly using linearmodels outputs to determine the appropriate model specification.

How do I fit Arellano-Bond dynamic panel GMM models with Python?

To fit Arellano-Bond dynamic panel GMM models with Python, use the linearmodels package to apply IV-style workflows on entity-time datasets. This skill handles dynamic persistence modeling, allowing you to estimate lagged dependent variable specifications with robust inference.

Does linearmodels require a specific DataFrame format for panel econometrics estimation?

Yes, linearmodels requires a specific DataFrame format for panel econometrics: inputs must be provided as a MultiIndex (entity, time) DataFrame. This structure allows the library to correctly identify cross-sectional units and time periods for fixed effects and dynamic panel models.

How do I compute clustered and robust standard errors for pooled OLS panel regression?

To compute clustered and robust standard errors for pooled OLS panel regression, fit the model using linearmodels with appropriate covariance settings. This skill configures clustering at the entity level and aligns coefficients to generate reliable inference statistics for firm-year datasets.

What panel diagnostics should I run after estimating fixed effects and dynamic panel models?

After estimating fixed effects and dynamic panel models, you should run panel diagnostics such as unit-root testing and serial correlation checks, including Wooldridge-style tests. This skill performs these validation checks alongside Hausman tests to verify model specification and persistence assumptions.