Panel data

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Correlated data.

In correlated data, panel data are repeated observations of the same units, so each record has both a unit and a time. A household that is interviewed once can be compared with other households. A household that is interviewed every quarter can also be compared with itself. Panel data are the second arrangement: the same units, observed at more than one time, so that each record carries a unit label and a time label. The statistical point of the second label is dependence. Two observations on the same person can be correlated even when two people are not.[1][2]

Panel data

Panel data
Fact Value
Topic Correlated data
Listed on Correlated data
Worked example 1

Motivating example

Three people are weighed at the start of a year and again at the end. The pairs are (2,4)(2,4), (5,5)(5,5), and (3,6)(3,6). Each person has a change, +2+2, 00, and +3+3. The average change is 5/35/3. The cross-sectional means are 10/310/3 at the start and 55 at the end, and the difference of those means is the same 5/35/3. The equality is a property of a complete panel. Drop one of the later weights and it disappears. A fresh sample of different people at the second date would not have produced within-person changes at all.[2][1]

Definition

Panel data are repeated observations on a fixed or slowly changing collection of units, indexed by unit and by time. In the survey tradition a panel is a census-like inquiry that is repeated, built on a permanent or semipermanent sample of people or households who are questioned on a schedule. The sample may be held fixed when the aim is to follow individuals, and that case is a longitudinal inquiry. It may be partly renewed when the aim is to estimate population characteristics at successive dates, and that case is a changing panel. Either way the file has an individual dimension and a time dimension at once.[2]

In the regression tradition the same layout is the second leading example of clustered errors, after a single cross-section clustered by region. Errors in different periods for one person, firm, or region may be correlated. Errors for different individuals are treated as uncorrelated. The cluster is the individual, and the observations inside the cluster are the times. Default standard errors that treat every row as an independent residual overstate the precision of a coefficient when that within-person correlation is present.[1]

Longitudinal data, in the sense of several observations on the same subject, include this layout. Repeated measures in biology and medicine, and panel studies in the social sciences, are the usual examples. A general linear model for subject ii is yi=Xiβ+Wiγi+εiy_i=X_i\beta+W_i\gamma_i+\varepsilon_i, with β\beta common and γi\gamma_i a subject effect. The simplest version drops γi\gamma_i and keeps only a time or group mean. When individuals differ, the subject effect goes back in, and the covariance of γi\gamma_i and εi\varepsilon_i becomes part of the model.[2]

Interpretation

Write YitY_{it} for unit i=1,…,Ni=1,\ldots,N at time t=1,…,Tt=1,\ldots,T, and write Δi=YiT−Yi1\Delta_i=Y_{iT}-Y_{i1} when only the first and last times are compared. If every unit is observed at both times,

1N∑i=1NΔi=(1N∑i=1NYiT)−(1N∑i=1NYi1).\frac{1}{N}\sum_{i=1}^N \Delta_i = \left(\frac{1}{N}\sum_{i=1}^N Y_{iT}\right) - \left(\frac{1}{N}\sum_{i=1}^N Y_{i1}\right).

The average change equals the change in the average. In the three-person panel the changes are 22, 00, and 33, their mean is 5/35/3, and the means 55 and 10/310/3 differ by 5/35/3. The identity uses the same set of units at both times. It is an algebraic fact about a complete rectangle, not a fact about a changing population.[2]

Suppose the third person’s second weight is missing. The two observed changes average (2+0)/2=1(2+0)/2=1. The first-wave mean of all three people is 10/310/3, and the second-wave mean of the two people who remain is (4+5)/2=9/2(4+5)/2=9/2. The difference of those means is

92−103=76,\frac{9}{2}-\frac{10}{3}=\frac{7}{6},

which is not 11. A comparison of whoever is present at each date is not the average of the observed individual changes. Missing times change the contrast.[1][2]

Observations on one unit are dependent, so the sample size for a within-unit question is NN, the number of units, rather than NTNT, the number of rows. A panel of 2020 people observed at 1010 dates has 200200 rows and 2020 independent personal histories. Standard errors that count 200200 independent residuals are too small when the personal errors persist. If the number of clusters is large, inference after least squares can use cluster-robust standard errors at the person level. A short panel, large NN and small TT, is the setting those standard errors were built for. A long panel on a few units is closer to a set of time series.[1]

Worked example

The complete panel (2,4)(2,4), (5,5)(5,5), (3,6)(3,6) has first-wave mean 10/310/3, second-wave mean 55, and mean change 5/35/3. The three changes sum to 55, and 5/35/3 equals 5−10/35-10/3. With the third second-wave value removed, the mean of the two observed changes is 11 and the difference of the available wave means is 7/67/6. The two summaries, 11 and 7/67/6, describe different sets of people.[2][1]

Your turn. Two units are observed at both times, with values 11 then 44, and 66 then 66. Find the mean change and the difference between the second-wave mean and the first-wave mean.

The changes are 33 and 00, so the mean change is 1.51.5. The wave means are (1+6)/2=3.5(1+6)/2=3.5 and (4+6)/2=5(4+6)/2=5, and their difference is 5−3.5=1.55-3.5=1.5.

Connections

One wave of a panel is cross-sectional data. Many waves on one aggregate, without a cross-section of units, are a time series. Repeated measures are the same idea in experimental and clinical language. A unit intercept shared by the times is a random-intercept model inside a linear mixed model, and a non-Gaussian response uses a generalised linear mixed model. Those models are multilevel models when the unit effects are one level and, for example, clinics containing the units are another. A population-average analysis that keeps the times correlated only through a working matrix uses generalised estimating equations. Cluster-robust standard errors leave the dependence unspecified and require many units. Those are different uses of the same rectangular file.[1][2]

Check yourself

Try these questions before opening an answer.

The same people

Why does the average of within-unit changes equal the difference of the wave means only when the panel is complete?

The algebra uses the same units at both times. Dropping a unit from one wave changes who is in that wave mean without changing the set of observed changes in the same way.

Rows and histories

Why is a panel of 20 people observed at 10 times not a sample of 200 independent residuals for a question about people?

Observations on the same person can be correlated. The independent histories are the 20 people, not the 200 rows.

History

Repeated measurement of the same people is older than the modern survey panel. In 1759 Philibert Guéneau de Montbeillard began recording his son’s stature every six months from birth to age 18. That series has the repeated-observation idea and little else in common with a national panel. The current notion of panel research took shape in the growth studies of the 1920s and 1930s. From the middle of the twentieth century the design spread through the social sciences. In the United States, public funding in the 1960s and 1970s supported the National Longitudinal Surveys from 1966 and the Panel Study of Income Dynamics from 1968, the latter beginning with 4,802 families. The same decades produced the methods for correlated longitudinal observations that made the large files usable rather than merely large.[2]

Survey panels have their own failures, and they are part of the history of the method rather than an afterthought. Some kinds of respondent are hard to recruit. Respondents tire, and non-response grows. The population changes, so a sample that was representative drifts. Dating of events is pulled toward the interview, the telescope effect, especially among new panellists. People who are asked repeatedly about a purchase or a symptom can change what they do because they were asked, which is panel conditioning. A changing panel is often used because a strict permanent sample deforms.[2]

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d e f g a. (§I, p. 2) b. (§I, p. 2) c. (§I, pp. 1–2) d. (§I, p. 2) e. (§I, pp. 2–3) f. (§I, p. 2) g. (§I, pp. 2–3) Cameron, A. C. & Miller, D. L. (2015). A Practitioner's Guide to Cluster-Robust Inference. Journal of Human Resources, 50(2), 317–372. https://doi.org/10.3368/jhr.50.2.317
  2. ^ a b c d e f g h i j a. (p. 410, Panel) b. (p. 410, Panel) c. (p. 410, Panel) d. (pp. 322–323, Longitudinal data) e. (p. 410, Panel) f. (p. 323, missing data) g. (p. 410, Panel) h. (pp. 322–323) i. (pp. 322 and 410–411) j. (p. 411, Domains and limitations) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
Plain text
StatWiki (2026). "Panel data." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/panel-data.html
BibTeX
@misc{statwiki_panel_data,
  author = {{StatWiki}},
  title = {{Panel data}},
  year = {2026},
  url = {https://www.statwiki.io/articles/panel-data.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}