Journal of Econometric Methods

Estimating Semiparametric and Nonparametric Fixed Effects Panel Data Models with mgcv

Ivan Korolev

Key points

From the paper's conclusion
  • Uniform bands modestly under-cover; model-based covariance inflation generally reduces undercoverage but can be conservative.

Abstract

This paper provides a practical guide to estimating semiparametric and nonparametric fixed-effects panel models using mgcv in R. It covers handling fixed effects with unit indicators, first differencing, or penalized unit effects; smooth specification; and cluster-robust inference. Monte Carlo experiments compare mgcv::bam with linear and fixed-series spline estimators. Penalized splines adapt to functional complexity and estimate functions accurately in these designs. With unit indicators or first differences, penalty-adjusted cluster-robust inference yields near-nominal size for parametric coefficients and pointwise coverage for unknown functions. Uniform bands modestly under-cover; model-based covariance inflation generally reduces undercoverage but can be conservative.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Estimating Semiparametric and Nonparametric Fixed Effects Panel Data Models with mgcv — Science Skim