Home  /  Products  /  Features  /  Panel data
Order

Panel/longitudinal data

Take full advantage of the extra information that panel data provide, while simultaneously handling the peculiarities of panel data. Study the time-invariant features within each panel, the relationships across panels, and how outcomes of interest change over time. Fit linear models or nonlinear models for binary, count, ordinal, censored, or survival outcomes with fixed-effects, random-effects, or population-averaged estimators. Fit dynamic models or models with endogeneity. And much more.

Linear models for panel data

Random-effects regression for binary, ordinal, categorical, and count-dependent variables

  • Probit *
  • Logistic regression *
  • Complementary log-log regression *
  • Ordered logistic regression *
  • Ordered probit regression *
  • Multinomial logistic regression *
  • Interval regression
  • Tobit
  • Poisson regression (Gaussian or gamma random-effects) *
  • Negative binomial regression
  • Robust standard errors with (*) regressions
  • Bayesian estimation

Conditional fixed-effects regression for binary, categorical, and count-dependent variables

Two-stage least-squares panel-data estimators

Random-effects regression with sample selection

    Random-effects extended regression models

    • Combine endogeneity, Heckman-style selection, and treatment effects
    • Linear regression
    • Interval regression, including tobit
    • Probit regression
    • Ordered probit regression
    • Exogenous or endogenous treatment assignment
      • Binary treatment–untreated/treated
      • Ordinal treatment levels–0 doses, 1 dose, 2 doses, etc.
    • Endogenous selection using probit or tobit
    • All standard postestimation commands available, including predict and margins

    Regressors correlated with individual-level effects

    Panel-corrected standard errors (PCSE) for linear cross-sectional models

      Swamy’s random-coefficients regression

        Stochastic frontier models

        • Time-invariant model
        • Time-varying decay model
        • Battese–Coelli parameterization of time effects
        • Estimates of technical efficiency and inefficiency

        Specification tests

        Panel-data unit-root tests

        • Im–Pesaran–Shin
        • Levin–Lin–Chu
        • Hadri
        • Breitung
        • Fisher-type (combining p-values)
        • Harris–Tzavalis

        Summary statistics and tabulations

        • Statistics within and between panels
        • Pattern of panel participation

        Panel-data line plots

        • Graphs by panel
        • Overlaid panels

        GEE estimation of generalized linear models (GLMs)

        Linear dynamic panel-data estimators

        • Arellano–Bond estimator
        • Arellano–Bover/Blundell–Bond system
        • Panel-data vector autoregression StataNow
        • Opening, closing, and embedded gaps
        • Serially correlated disturbances
        • Complete control over instrument list
        • Predetermined variables
        • Tests for autocorrelation and of overidentifying restrictions

        Random-effects parametric survival models

        Multilevel mixed-effects models

          Bayesian random-effects quantile models StataNow

          Population-averaged regression

          • Complementary log-log regression
          • Generalized estimating equations
          • Logit regression
          • Negative binomial regression
          • Poisson regression
          • Probit regression
          • Linear models regression

          Stationarity tests

          Postestimation Selector

          • View and run all postestimation features for your command
          • Automatically updated as estimation commands are run

          Factor variables

          • Automatically create indicators based on categorical variables
          • Form interactions among discrete and continuous variables
          • Include polynomial terms
          • Perform contrasts of categories/levels
          Watch Introduction to Factor Variables in Stata tutorials

          Marginal analysis

          • Estimated marginal means
          • Marginal and partial effects
          • Average marginal and partial effects
          • Least-squares means
          • Predictive margins
          • Adjusted predictions, means, and effects
          • Works with multiple outcomes simultaneously
          • Contrasts of margins
          • Pairwise comparisons of margins
          • Profile plots
          • Graphs of margins and marginal effects
          Watch Introduction to margins in Stata tutorials
          Watch Profile plots and interaction plots in Stata tutorials

          Additional resources

          See tests, predictions, and effects.

          See New in Stata 18 to learn about what was added in Stata 18.