Skip to main content
QUICK REVIEW

[Paper Review] The R-package phtt: Panel Data Analysis with Heterogeneous Time Trends

Oualid Bada, Dominik Liebl|arXiv (Cornell University)|Jul 24, 2014
Spatial and Panel Data AnalysisEconomics, Econometrics and Finance26 references10 citations
TL;DR

This paper introduces the R package phtt, which implements advanced panel data models with heterogeneous time trends using factor structures from Bai (2009) and Kneip et al. (2012). It enables estimation of unobserved factors and factor dimensions via multiple criteria, offering robust tools for large-n, large-T panel data with non-stationary and smooth time-varying effects.

ABSTRACT

The R-package phtt provides estimation procedures for panel data with large dimensions n, T, and general forms of unobservable heterogeneous effects. Particularly, the estimation procedures are those of Bai (2009) and Kneip, Sickles, and Song (2012), which complement one another very well: both models assume the unobservable heterogeneous effects to have a factor structure. Kneip et al. (2012) considers the case in which the time varying common factors have relatively smooth patterns including strongly positive auto-correlated stationary as well as non-stationary factors, whereas the method of Bai (2009) focuses on stochastic bounded factors such as ARMA processes. Additionally, the phtt package provides a wide range of dimensionality criteria in order to estimate the number of the unobserved factors simultaneously with the remaining model parameters.

Motivation & Objective

  • Address the limitations of classical panel models that assume time-invariant individual effects, which become implausible for large-T panel data.
  • Develop a flexible framework for modeling unobserved heterogeneity with time-varying individual effects that follow a factor structure.
  • Integrate two complementary estimation approaches: Bai (2009) for stochastic bounded factors (e.g., ARMA), and Kneip et al. (2012) for smooth, possibly non-stationary factors.
  • Provide a unified R package with robust estimation, diagnostics, and model selection tools for modern panel data analysis.
  • Enable researchers to estimate the unknown number of unobserved factors using a wide range of dimensionality criteria.

Proposed method

  • Implement the Eup() function for Bai (2009)’s iterated least squares method, suitable for stationary and weakly dependent time-varying effects.
  • Implement the KSS() function for Kneip et al. (2012)’s two-step semi-parametric estimation using nonparametric smoothing of time-varying effects.
  • Apply normalization constraints to ensure factor and loading uniqueness: unit variance for factors, orthogonality across factors and loadings.
  • Use principal component analysis to estimate initial factor structures and iteratively refine estimates in both models.
  • Integrate the OptDim() function to compute and compare multiple factor dimension selection criteria from the literature.
  • Support standard R methods (print, summary, plot, coef, residuals) for model diagnostics and interpretation.

Experimental results

Research questions

  • RQ1How can panel data models be extended to handle large cross-sectional and time dimensions with time-varying individual effects?
  • RQ2What is the impact of allowing heterogeneous time trends on the accuracy and interpretability of panel data estimation?
  • RQ3How can the number of unobserved factors be consistently estimated in high-dimensional panel data?
  • RQ4In what ways do the Bai (2009) and Kneip et al. (2012) models complement each other in handling different types of time-varying effects?
  • RQ5How can factor rotation and loading standardization improve economic interpretability of estimated common factors?

Key findings

  • The first two common factors in the Cigar2.KSS model explain 90.6% of the total variance in time-varying individual effects (66.32% and 24.28% respectively).
  • The KSS model successfully captures smooth, non-stationary time trends through nonparametric smoothing of individual effects.
  • The Eup() function enables robust estimation under weak dependence and heteroskedasticity, extending applicability beyond classical models.
  • The OptDim() function provides access to multiple dimensionality criteria, supporting data-driven selection of the factor dimension.
  • Factor rotation (e.g., via varimax) and loading standardization improve interpretability by resolving sign and scale indeterminacy.
  • The package’s implementation fills a gap in existing software by offering the Kneip et al. (2012) method, previously unavailable in R.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.