Skip to main content
Log in

A penalized spline estimator for fixed effects panel data models

  • Original Paper
  • Published:
AStA Advances in Statistical Analysis Aims and scope Submit manuscript

Abstract

Estimating nonlinear effects of continuous covariates by penalized splines is well established for regressions with cross-sectional data as well as for panel data regressions with random effects. Penalized splines are particularly advantageous since they enable both the estimation of unknown nonlinear covariate effects and inferential statements about these effects. The latter are based, for example, on simultaneous confidence bands that provide a simultaneous uncertainty assessment for the whole estimated functions. In this paper, we consider fixed effects panel data models instead of random effects specifications and develop a first-difference approach for the inclusion of penalized splines in this case. We take the resulting dependence structure into account and adapt the construction of simultaneous confidence bands accordingly. In addition, the penalized spline estimates as well as the confidence bands are also made available for derivatives of the estimated effects which are of considerable interest in many application areas. As an empirical illustration, we analyze the dynamics of life satisfaction over the life span based on data from the German Socio-Economic Panel. An open-source software implementation of our methods is available in the R package pamfe.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Notes

  1. Socio-Economic Panel (SOEP), data of the years 1984–2011, version 28, SOEP, 2012, doi:10.5684/soep.v28.

  2. For notational simplicity, we refrain from adding stochastic covariates and covariates with strictly parametric effects. However, as can be seen in Sect. 5, semiparametric partially linear models can also be handled easily within our framework.

  3. One way to obtain such a decomposition is described in Wood (2006, pp. 316–317).

  4. The only reason to refrain from incorporating different observation horizons between persons is notational convenience. As can be seen in Sects. 4 and 5, unbalanced panels can be handled without any difficulties in our framework.

  5. \(\varvec{\varPsi }\) can be obtained from \(\varvec{\varOmega }^{-1}\) with the help of the Cholesky factorization and matrix inversion.

  6. We observe similar problems for other functions, e.g., \(f(x)=(0.5-x)^{3}\); see the online supplement.

  7. The corresponding question in the SOEP survey is: “How satisfied are you with your life, all things considered?”.

  8. Incorporating leads and lags results in a smaller sample size. In our case, we require an individual to be observed in at least six consecutive periods corresponding to at least one observation for estimation after building two leads and two lags and taking first differences. Albeit the loss of observations, this modeling procedure allows us to investigate whether effects on life satisfaction are long-lasting or just temporary; see for instance Lucas (2007) for a discussion on this issue.

  9. In fact, the estimated derivative was obtained in a new estimation with spline degree five and third-order difference penalty, leading to a smoother curve.

References

  • Antoniadis, A., Gijbels, I., Verhasselt, A.: Variable selection in additive models using P-splines. Technometrics 54(4), 425–438 (2012)

    Article  MathSciNet  Google Scholar 

  • Baltagi, B.H., Li, D.: Series estimation of partially linear panel data models with fixed effects. Ann. Econ. Financ. 3(1995), 103–116 (2002)

    Google Scholar 

  • Chen, J., Gao, J., Li, D.: Estimation in partially linear single-index panel data models with fixed effects. J. Bus. Econ. Stat. 31(3), 315–330 (2013a)

    Article  MathSciNet  Google Scholar 

  • Chen, J., Li, D., Gao, J.: Non- and semi-parametric panel data models: a selective review. http://ecgi.ssrn.com/delivery.php?ID=http://papers.ssrn.com/sol3/papers.cfm?abstract_id=2313431 (2013b)

  • Claeskens, G., Krivobokova, T., Opsomer, J.D.: Asymptotic properties of penalized spline estimators. Biometrika 96(3), 529–544 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  • Claeskens, G., Van Keilegom, I.: Bootstrap confidence bands for regression curves and their derivatives. Ann. Stat. 31(6), 1852–1884 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  • Crainiceanu, C.M., Ruppert, D., Carroll, R.J., Joshi, A., Goodner, B.: Spatially adaptive Bayesian penalized splines with heteroscedastic errors. J. Comput. Graph. Stat. 16(2), 265–288 (2007)

    Article  MathSciNet  Google Scholar 

  • De Boor, C.: A Practical Guide to Splines. Springer, Berlin (2001)

    MATH  Google Scholar 

  • Eilers, P.H.C., Marx, B.D.: Flexible smoothing with B-splines and penalties. Stat. Sci. 11(2), 89–102 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  • Eubank, A.R.L., Speckman, P.L.: Confidence bands in nonparametric regression. J. Am. Stat. Assoc. 88(424), 1287–1301 (1993)

    Article  MathSciNet  MATH  Google Scholar 

  • Fahrmeir, L., Kneib, T., Lang, S., Marx, B.: Regression. Models, Methods and Applications. Springer, Berlin (2013)

    MATH  Google Scholar 

  • Ferrer-i Carbonell, A., Frijters, P.: How important is methodology for the estimates of the determinants of happiness? Econ. J. 114(497), 641–659 (2004)

    Article  Google Scholar 

  • Frijters, P., Beatton, T.: The mystery of the U-shaped relationship between happiness and age. J. Econ. Behav. Organ. 82(2–3), 525–542 (2012)

    Article  Google Scholar 

  • Hajargasht, G.: Nonparametric panel data models: a penalized spline approach. https://sites.google.com/site/ghgasht/NonpPanelSpline.pdf?attredirects=0 (2009)

  • Härdle, W., Huet, S., Mammen, E., Sperlich, S.: Bootstrap inference in semiparametric generalized additive models. Econ. Theory 20(02), 265–300 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  • Henderson, D.J., Carroll, R.J., Li, Q.: Nonparametric estimation and testing of fixed effects panel data models. J. Econ. 144(1), 257–275 (2008)

    Article  MathSciNet  MATH  Google Scholar 

  • Kauermann, G., Krivobokova, T., Fahrmeir, L.: Some asymptotic results on generalized penalized spline smoothing. J. R. Stat. Soc. Ser. B Stat. Methodol. 71(2), 487–503 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  • Krivobokova, T., Kauermann, G.: A note on penalized spline smoothing with correlated errors. J. Am. Stat. Assoc. 102(480), 1328–1337 (2007)

    Article  MathSciNet  MATH  Google Scholar 

  • Krivobokova, T., Kneib, T., Claeskens, G.: Simultaneous confidence bands for penalized spline estimators. J. Am. Stat. Assoc. 105(490), 852–863 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  • Laporte, A., Windmeijer, F.: Estimation of panel data models with binary indicators when treatment effects are not constant over time. Econ. Lett. 88(3), 389–396 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  • Li, G., Peng, H., Tong, T.: Simultaneous confidence band for nonparametric fixed effects panel data models. Econ. Lett. 119(3), 229–232 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  • Loader, C.R., Sun, J.: Robustness of tube formula based confidence bands. J. Comput. Graph. Stat. 6(2), 242–250 (1997)

    MathSciNet  Google Scholar 

  • López Ulloa, B.F., Møller, V., Sousa-Poza, A.: How does subjective well-being evolve with age? A literature review. J. Popul. Ageing 6(3), 227–246 (2013)

    Article  Google Scholar 

  • Lucas, R.E.: Adaptation and the set-point model of subjective well-being: does happiness change after major life events? Curr. Dir. Psychol. Sci. 16(2), 75–79 (2007)

    Article  Google Scholar 

  • Mammen, E., Støve, B., Tjøstheim, D.: Nonparametric additive models for panels of time series. Econ. Theory 25(02), 442 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  • Neumann, M.H., Polzehl, J.: Simultaneous bootstrap confidence bands in nonparametric regression. J. Nonparametr. Stat. 9(4), 307–333 (1998)

    Article  MathSciNet  MATH  Google Scholar 

  • Pinheiro, J.C., Bates, D.M.: Mixed Effects Models in S and S-PLUS. Springer, Berlin (2000)

    Book  MATH  Google Scholar 

  • Qian, J., Wang, L.: Estimating semiparametric panel data models by marginal integration. J. Econo. 167(2), 483–493 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  • Ruppert, D., Wand, M.: Semiparametric Regression. Cambridge University Press, Cambridge (2003)

    Book  MATH  Google Scholar 

  • Su, L., Ullah, A.: Profile likelihood estimation of partially linear panel data models with fixed effects. Econ. Lett. 92, 75–81 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  • Su, L., Ullah, A.: Nonparametric and Semiparametric Panel Econometric Models: Estimation and Testing. Handbook of Empirical Economics and Finance, pp. 455–497. Taylor & Francis Group, Abingdon (2011)

    Google Scholar 

  • Sun, J., Loader, C.R.: Simultaneous confidence bands for linear regression and smoothing. Ann. Stat. 22(3), 1328–1345 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  • Wagner, G.G., Frick, J.R., Schupp, J.: The German Socio-Economic Panel Study (SOEP)—scope, evolution, and enhancements. Schmollers Jahrbuch 127(1), 139–169 (2007)

    Google Scholar 

  • Wang, J., Yang, L.: Polynomial spline confidence bands for regression curves. Stat. Sin. 19, 325–342 (2009)

    MathSciNet  MATH  Google Scholar 

  • Wang, X., Shen, J., Ruppert, D.: On the asymptotics of penalized spline smoothing. Electron. J. Stat. 5, 1–17 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  • Weyl, H.: Weyl—on the volume of tubes.pdf. Am. J. Math. 61(2), 461–472 (1939)

    Article  MathSciNet  MATH  Google Scholar 

  • Wiesenfarth, M., Krivobokova, T., Klasen, S., Sperlich, S.: Direct simultaneous inference in additive models and its application to model undernutrition. J. Am. Stat. Assoc. 107(500), 1286–1296 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  • Wood, S.N.: Generalized Additive Models: An Introduction with R. Chapman & Hall/CRC, Boca Raton (2006)

    MATH  Google Scholar 

  • Wood, S.N., Pya, N., Säfken, B.: Smoothing parameter and model selection for general smooth models. J. Am. Stat. Assoc. 1459(8), 1–45 (2016)

    MathSciNet  Google Scholar 

  • Wooldridge, J.M.: Econometric Analysis of Cross Section and Panel Data. MIT Press, Cambridge (2002)

    MATH  Google Scholar 

  • Wunder, C., Wiencierz, A., Schwarze, J., Küchenhoff, H.: Well-being over the life span: semiparametric evidence from British and German longitudinal data. Rev. Econ. Stat. 95(1), 154–167 (2011)

    Article  Google Scholar 

  • Yang, L.: Confidence band for additive regression model. J. Data Sci. 6, 207–217 (2008)

    Google Scholar 

  • Yoshida, T., Naito, K.: Asymptotics for penalized additive B-spline regression. J. Jpn. Stat. Soc. 42(1), 81–107 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  • Yoshida, T., Naito, K.: Asymptotics for penalized splines in generalized additive models. J. Nonparametr. Stat. 26(2), 269–289 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  • Zhang, J., Feng, S., Li, G., Lian, H.: Empirical likelihood inference for partially linear panel data models with fixed effects. Econ. Lett. 113(2), 165–167 (2011)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Peter Pütz.

Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary material 1 (pdf 183 KB)

Appendix: Serial correlation in the first-difference errors

Appendix: Serial correlation in the first-difference errors

Consider Eq. (7): If the error terms \(u_{it},\; i=1,\ldots ,N,\, t=1,\ldots ,T_{i}\) are homoscedastic and independent with expectation zero, then \(\text {E}(u_{it}u_{i,t-1})=0 \text { and }\text {E}(u_{it}u_{it})=\sigma _{u}^{2}.\) It follows for the errors \(\triangle u_{it}=u_{it}-u_{i,t-1}\) in Eq. (9):

$$\begin{aligned} \text {E}(\Delta {u_{it}})=\text {E}(u_{it}-u_{i,t-1})=0 \end{aligned}$$
Fig. 4
figure 4

Nonparametrically estimated relationship between household income (in 1000 €) and life satisfaction with confidence bands

Table 2 Estimation results for strictly parametric components

and

$$\begin{aligned} \text {Var}(\Delta {u_{it}})=\text {Var}(u_{it}-u_{i,t-1}) =\text {Var}(u_{it})+\text {Var}(u_{i,t-1})=2\sigma _{u}^{2}. \end{aligned}$$

The correlation of two consecutive error terms for the same individual after applying first differences is then given by

$$\begin{aligned} \text {Cor}(\Delta {u_{it}},\Delta {u_{i,t-1}})= & {} \frac{\text {E}\left[ (\Delta {u_{it}}) (\Delta {u_{i,t-1}})\right] }{\sqrt{\text {Var}(\Delta {u_{it}})\text {Var}(\Delta {u_{i,t-1}})}}\\= & {} \frac{\text {E}\left[ (u_{it}-u_{i,t-1})(u_{i,t-1}-u_{i,t-2})\right] }{\sqrt{2\sigma _{u}^{2}2\sigma _{u}^{2}}}\\= & {} \frac{\text {E}\left( -u_{i,t-1}^{2}\right) }{2\sigma _{u}^{2}}=\frac{-\sigma _{u}^{2}}{2 \sigma _{u}^{2}}=-0.5. \end{aligned}$$

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Pütz, P., Kneib, T. A penalized spline estimator for fixed effects panel data models. AStA Adv Stat Anal 102, 145–166 (2018). https://doi.org/10.1007/s10182-017-0296-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10182-017-0296-1

Keywords

Navigation