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
- Estimation and inference in penalized function-on-function regression with dependent residual curvesarXiv · 2026
- Robust Estimation and Inference for Semiparametric and Nonparametric Regression ModelsMathematics · 2026
- Double Machine Learning for Panel Data: Identification, Specification, and a Bank Regulation EffectarXiv · 2026
- Which Text Matters: Handling Model Uncertainty in Text-as-Data Regressions, with an Application to Central Bank CommunicationarXiv · 2026
- A Semiparametric Functional Generalized Linear Model for Multi-Population DataarXiv · 2026
- ON THE CCE ESTIMATION OF THREE-DIMENSIONAL PANELS WITH MULTI-LEVEL FACTORSEconometric Theory · 2026