Australian National University · FACULTY OF ECONOMICS

EMET8002 Chap.8 Panel Data With Fixed and Random Effects

- one subject, every graph, every model, every mark
9 Chapters5-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 8 of 13 · EMET8002

Panel Data With Fixed and Random Effects

Panels and their advantages

Panel data follow many units over time.

The chapter covers long and wide formats, cohort and panel studies, attrition, and pooled OLS with clustered standard errors, then shows how differencing and fixed effects remove time-invariant omitted variables, using the lecture's case of beer taxes and traffic deaths.

Choosing and extending the model

Random effects, the Hausman test and the practical rules for choosing between the two estimators are set out, along with time fixed effects, the HILDA survey, and the difference and system GMM estimators for models with a lagged dependent variable.

Portfolios and wage panels in Week 9

The Week 9 lab reshapes daily industry portfolio returns from wide to long format, declares the panel, and tests whether the Great Depression, the Second World War and the global financial crisis moved returns.

It then runs a wage panel through a Hausman test, time fixed effects and the addition of schooling. Marks follow from justifying each model choice in words, since the lab notes that often no model satisfies every assumption.

In this chapter

What this chapter covers

  • 01

    Cross-section, time series and panel data

  • 02

    Long and wide format

  • 03

    Pooled OLS with clustered standard errors

  • 04

    Two-period differencing

  • 05

    Fixed and random effects

  • 06

    The Hausman test

  • 07

    State and time fixed effects

  • 08

    Difference and system GMM

  • 09

    The HILDA survey

Worked example · free

Why pooling hides the within-unit slope

Q [3 marks]. Entity A has X values of 1, 2 and 3 with outcomes 6.5, 7.0 and 7.5; entities B and C have the same slope but lower intercepts and higher X. Pooled OLS on all nine points gives a slope of −0.3. Find the within slope for entity A and explain the difference. The practice weighting is assigned by AskSia and is not an official assessment.
Three invented entities, each with its own intercept and the same within slope of +0.5: pooling all nine points ignores the different intercepts and produces a Three invented entities, each with its own intercept and the same within slope of +0.5: pooling all nine points ignores the different intercepts and produces a misleading slope of −0.3.regressor Xoutcome Yentity Aentity Bentity Cpooled slope −0.3within slope +0.5048
Three invented entities, each with its own intercept and the same within slope of +0.5: pooling all nine points ignores the different intercepts and produces a misleading slope of −0.3.
  • 1Within entity A, the outcome rises by 7.5 − 6.5 = 1.0 as X rises by 3 − 1 = 2, a slope of 0.5.
  • 1Entities with higher X have lower intercepts, so pooling mixes the between-entity pattern with the within-entity one.
  • 1Fixed effects give each entity its own intercept and recover the within slope of 0.5.
The true within-entity effect is +0.5, but pooled OLS reports −0.3 because a fixed entity characteristic is correlated with X. That is omitted variable bias from a time-invariant factor, which fixed effects remove.
Sia tip — Name the fixed characteristic you are worried about; it is the reason fixed effects are needed.
Glossary

Key terms

Balanced Panel
A panel in which every unit is observed in every time period.
Random Effects
A panel estimator that treats the unit effect as random and uncorrelated with the regressors.
Hausman Test
A test of whether the unit effect is correlated with the regressors, used to choose fixed or random effects.
Difference GMM
A dynamic panel estimator that instruments the differenced lag with earlier levels.
Sample Attrition
The loss of panel members over time, which can make a sample unrepresentative.
FAQ

Panel Data With Fixed and Random Effects FAQ

When should I use fixed effects instead of random effects?

Use fixed effects when the unobserved unit characteristic is likely correlated with the regressors, which a Hausman rejection supports. Prefer random effects when that correlation is implausible, when units change little over time, or when you need to estimate a time-invariant variable.

Why does a cross-section regression of traffic deaths on beer taxes mislead?

States differ in many fixed ways, such as road quality and drinking culture, that correlate with taxes. Comparing changes within states over time removes those factors, and the lecture's before-and-after regression then finds that higher beer taxes go with fewer deaths.

What problem do the GMM estimators solve?

With a lagged dependent variable, the lag is correlated with the unit effect, so fixed effects are biased. Difference GMM removes the unit effect by differencing and instruments the differenced lag with an earlier level; system GMM adds the level equation for extra efficiency.

What is the difference between long and wide panel format?

Wide format has one row per unit with a column for each period's value, while long format has one row per unit and period. Stata's panel commands need long format, so data in wide format are reshaped first and then declared as a panel with xtset.

What does HILDA offer for a research project?

HILDA is a household panel that began in 2001 and interviews all adult household members every year. It tracks economic and subjective wellbeing, labour market and family dynamics, which makes it suitable for fixed effects designs. Students apply individually through the Australian Data Archive and may use only General Release 22.

Study strategy

Assessment move

Run the full Stata sequence once on a small panel: xtset, fixed effects, random effects, the Hausman test and time effects. For each step, write one sentence saying what it assumes and what it removes. Finally, state in one sentence the unobserved factor that motivates fixed effects in your own project, and one time-varying factor that fixed effects would not remove.

Working through Panel Data With Fixed and Random Effects in EMET8002? Sia is AskSia’s AI Economics tutor — ask any EMET8002 Panel Data With Fixed and Random Effects question and get a clear, step-by-step explanation grounded in how EMET8002 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 48 of your Australian National University subjects - and 1,000+ Bibles across every Australian university.
Sia - your EMET8002 tutor, unlimited, worked the way the exam marks it
The full 5-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works