The data structure is a balanced or unbalanced panel: N entities (countries, states, industries) observed over T time periods (years, quarters). The dataset has N×T observations (or fewer if unbalanced). Each observation is indexed by (i,t). The dependent variable yit is the macroeconomic outcome of interest (GDP growth, inflation, unemployment, debt-to-GDP ratio). The regressors xit are the policy or structural variables whose effects we want to estimate (tax rate, trade openness, government spending share, institutional quality index).
The model separates the error term into three components. The entity fixed effect αi captures all time-invariant unobserved characteristics of entity i (geography, deep institutions, culture). The time fixed effect γt captures all entity-invariant shocks at time t (global recessions, oil shocks, technology shifts). The idiosyncratic error εit is the remaining variation specific to entity i at time t, assumed to satisfy strict exogeneity: E[εit∣xi1,…,xiT,αi,γt]=0.
Estimation by OLS on the demeaned data (within transformation) is algebraically equivalent to LSDV (least squares with dummy variables) but computationally cheaper for large N. Standard errors must be clustered at the entity level to account for serial correlation in the idiosyncratic error within each entity's time series. Failure to cluster produces dramatically understated standard errors and spurious significance. With small N (fewer than 50 clusters), cluster-robust standard errors are themselves unreliable; the wild cluster bootstrap (Cameron, Gelbach, Miller 2008) provides a finite-sample correction.