Nonlinear Panel Data Analysis

Econometrics
Introduced by
Cheng Hsiao; Jeffrey M. Wooldridge
Year
1986–2010
Type
Panel data model (nonlinear)
Family
Econometrics / time series

What does it do?

Nonlinear panel data analysis applies nonlinear models, such as logit, probit, Poisson, and Tobit, to repeated observations on the same units over time.

It separates unit-specific unobserved heterogeneity from the effects of predictors while respecting the structure of the outcome. It is needed when the dependent variable is binary, a count, censored, or otherwise not continuous.

The intuition behind the method

When you follow the same individuals, firms, or countries across many periods and the outcome is not a continuous measure, such as whether a firm exits a market or how many patents it files, linear panel models are often a poor fit. Nonlinear panel models keep the outcome's natural range, such as probabilities between 0 and 1 or non-negative counts, while still allowing for time-constant differences between units. The difficulty is that the device used in linear models to remove unit effects, differencing or demeaning, does not carry over cleanly to nonlinear likelihoods, so specialised estimators are needed.

History

Cheng Hsiao's Analysis of Panel Data is a standard general reference on the econometrics of panel data, and Jeffrey M. Wooldridge's Econometric Analysis of Cross Section and Panel Data is another widely used text in this area. The nonlinear estimators described here have been developed in the wider panel literature, including work on bias correction for nonlinear fixed-effects models such as Hahn and Newey (2004).

When to use it

Choose nonlinear panel data analysis when the outcome is binary, ordered, a count, or censored, when the data contain repeated observations on the same units, and when unobserved unit-level heterogeneity is a plausible confounder. If the outcome is continuous, a linear panel model is usually the simpler and more appropriate choice. Be cautious when the time dimension is very short, because fixed-effects nonlinear estimators are consistent only for some models; check which estimator remains valid for your panel length before proceeding. When the distributional assumption of the link is doubtful, a linear probability model with fixed effects can serve as a robustness check, though it can produce predictions outside the outcome's range.

Limitations and considerations

  • Fixed-effects probit and most other fixed-effects nonlinear estimators have no conditioning device like the one for logit and Poisson, so the incidental parameters problem can make slope estimates inconsistent when T is small.
  • Random-effects estimation requires c_i to be uncorrelated with the regressors; if it is not, the slopes are biased in a way similar to omitted-variable bias.
  • Marginal effects differ across observations, and a single summary can hide heterogeneous effects. The averaging choice, such as average partial effects versus effects at the mean, can change the reported magnitude.
  • Random-effects integration and high-dimensional fixed effects raise computational cost compared with linear panel estimators.
  • Results depend on the assumed link function and its distributional form; misspecification can invalidate inference, and formal tests of the link are not always applied in practice.
  • Analytical and jackknife bias corrections for nonlinear fixed-effects models (Hahn and Newey, 2004) can reduce incidental parameters bias, but they rely on large-sample approximations and are derived model by model.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models the outcome's own support directly, so predicted probabilities and rates stay within admissible bounds, unlike a linear probability model.
  • Fixed-effects logit and fixed-effects Poisson condition out each unit's effect using its total outcome, so the slopes do not require estimating one parameter per unit, even with few periods per unit.
  • Random-effects versions can estimate coefficients on time-invariant covariates, which fixed-effects estimators eliminate.
  • Average partial effects give population-level marginal effects that are comparable across specifications and interpretable in applied work.

Applications

  • Modelling firm entry and exit decisions using binary logit with firm fixed effects across multiple years, or probit with random effects or a correlated random-effects specification.
  • Estimating patent counts or innovation outputs with fixed-effects Poisson panel regressions.
  • Analysing labour market outcomes such as hours worked, which are censored at zero, on worker panels. Fixed-effects Tobit requires specialised estimators, such as Honore's (1992) trimmed least absolute deviations approach, rather than standard maximum likelihood with unit dummies.
  • Studying consumer purchase incidence in marketing panels with binary outcomes; multiple-choice outcomes with unit effects require more restrictive estimators.
  • Investigating health care utilisation, such as doctor visits or hospitalisations, as count outcomes in patient-level longitudinal datasets.
  • Examining household poverty transitions using binary response models with household fixed effects in logit form, or random-effects ordered models where the outcome has several categories.

How it works

How it works

1

The probability or conditional mean of the outcome is linked to a linear index of regressors plus a unit-specific effect c_i through a nonlinear function F. For binary outcomes F is typically a logistic or normal distribution function; for counts, an exponential mean function is common. The link keeps predictions within the outcome's admissible range.

Formula
P(y_{it}=1 \mid x_{it}, c_i) = F(x_{it}\beta + c_i)
2

Each unit carries a term c_i that does not change over time and captures characteristics missing from the data. If c_i is correlated with the regressors and left out, the slope estimates absorb part of its effect. In nonlinear models this bias is not confined to the intercept, which makes it more consequential than in linear models.

3

Fixed effects leave c_i unrestricted and estimate it, or condition it out, without assuming anything about its relation to the regressors. When T is short, estimating a separate c_i for every unit in a nonlinear model can bias the slopes, which is the incidental parameters problem. Random effects assume c_i is independent of the regressors and integrate it out of the likelihood. The choice therefore trades robustness to correlation between c_i and the regressors against the ability to estimate coefficients on time-invariant covariates.

4

Parameters are obtained by maximising a likelihood in which the unit-specific effects are handled explicitly rather than left as free unknowns. For fixed-effects binary logit and fixed-effects Poisson, c_i is removed by conditioning on each unit's total outcome (the number of positive responses in the logit case, the total count in the Poisson case). The slopes are then estimated by maximising the conditional likelihood, which does not require one parameter per unit and is consistent under the usual strict exogeneity assumption. Joint maximisation over the slopes and every unit dummy is the route most exposed to the incidental parameters problem, particularly when T is short. For most other fixed-effects nonlinear models, including probit, no comparable conditioning exists. For random effects, each unit's contribution is the integral of its conditional likelihood over the assumed distribution of c_i, and numerical integration, commonly Gauss-Hermite quadrature, approximates that integral.

Formula
\hat{\beta} = \arg\max_{\beta} \sum_{i=1}^{N} \log L_i(\beta, c_i)
5

Standard errors are obtained from the Hessian of the log-likelihood or via robust sandwich estimators clustered at the unit level. Marginal effects, which vary across observations in nonlinear models, are typically reported at the mean or as average partial effects to facilitate interpretation.

Common pitfalls

  • Using fixed-effects probit maximum likelihood in a panel with many units and few periods and treating its slopes as consistent. Conditional logit does not apply to probit, so the estimator should be reconsidered rather than assumed valid.
  • Reporting raw coefficients as if they were marginal effects. In nonlinear models, coefficients give direction and relative size, while effects on probabilities or rates require average partial effects.
  • Adding unit dummies to a nonlinear model without checking whether the fixed effects are conditionally estimable. Naive dummy variables invite the incidental parameters problem.
  • Choosing random effects without checking whether c_i is correlated with the regressors. A correlated random-effects specification, which adds the within-unit means of time-varying regressors, gives a direct check on that assumption. A Hausman-type comparison of fixed- and random-effects estimates is less straightforward in nonlinear models and should be applied with care rather than as a routine test.
  • Omitting clustering of standard errors at the unit level, which understates uncertainty when outcomes are correlated within units over time.

Frequently asked questions

Why can't I just use a linear probability model with panel fixed effects?

A linear probability model is convenient and avoids the incidental parameters problem, but it can produce predicted probabilities outside [0,1] and imposes a constant marginal effect across the full range of regressors. For inference about probabilities or rates, a correctly specified nonlinear model is preferable, though the linear model is often used as a robustness check.

What is the incidental parameters problem?

When fixed effects are treated as free parameters in a nonlinear maximum likelihood estimation, the number of parameters grows with the number of units. With few periods per unit, each unit's effect is estimated from very little information, which can bias the slope estimates. Fixed-effects logit and Poisson avoid this by conditioning out the unit effects before maximising.

When should I use random effects instead of fixed effects in a nonlinear panel model?

Use random effects when you need coefficients on time-invariant covariates, which fixed effects absorb, and when you are willing to assume that c_i is uncorrelated with the regressors. Where that assumption is doubtful, a correlated random-effects specification relaxes it while keeping the random-effects structure. With a short time dimension the choice has to be argued from the estimator's assumptions for that panel length.

How do I interpret coefficients from a nonlinear panel model?

Raw coefficients indicate the direction and relative size of effects but are not marginal effects on the outcome. Compute average partial effects by averaging the derivative of the conditional mean with respect to each regressor over all observations; these are reported alongside or instead of raw coefficients in applied work.

Can nonlinear panel models include lagged dependent variables?

Yes, but the initial conditions problem must be addressed. The lagged outcome is correlated with the unit effect because early outcomes partly shape it, so the first observation has to be modelled explicitly. Initial-conditions corrections are the standard approach, and their assumptions should be stated and checked.

Related methods

Sources

  1. Wooldridge, J. M. (2010). Econometric Analysis of Cross Section and Panel Data (2nd ed.). MIT Press.

    ISBN: 978-0262232586
  2. Hsiao, C. (2014). Analysis of Panel Data (3rd ed.). Cambridge University Press.

    ISBN: 978-1107657632
  3. Panel Data Econometrics, p. 196

  4. Econometric Analysis, 8th Edition, p. 1073