TSCSREG Procedure

Estimation Techniques

If the effects are fixed, the models are essentially regression models with dummy variables that correspond to the specified effects. For fixed-effects models, ordinary least squares (OLS) estimation is equivalent to best linear unbiased estimation.

The output from PROC TSCSREG is identical to what one would obtain from creating dummy variables to represent the cross-sectional and time (fixed) effects. The output is presented in this manner to facilitate comparisons to the least squares dummy variables estimator (LSDV). As such, the inclusion of a intercept term implies that one dummy variable must be dropped. The actual estimation of the fixed-effects models is not LSDV. LSDV is much too cumbersome to implement. Instead, PROC TSCSREG operates in a two-step fashion. In the first step, the following occurs:

  • One-way fixed-effects model: In the one-way fixed-effects model, the data are transformed by removing the cross-sectional means from the dependent and independent variables. The following is true:

    y overTilde Subscript i t Baseline equals y Subscript i t Baseline minus y overbar Subscript i dot
    bold x overTilde Subscript i t Baseline equals bold x Subscript i t Baseline minus bold x overbar Subscript i dot
  • Two-way fixed-effects model: In the two-way fixed-effects model, the data are transformed by removing the cross-sectional and time means and adding back the overall means,

    y overTilde Subscript i t Baseline equals y Subscript i t Baseline minus y overbar Subscript i dot Baseline minus y overbar Subscript dot t Baseline plus y overbar overbar
    bold x overTilde Subscript i t Baseline equals bold x Subscript i t Baseline minus bold x overbar Subscript i dot Baseline minus bold x overbar Subscript dot t Baseline plus bold x overbar overbar

where y Subscript i t and bold x Subscript i t are the dependent variable (a scalar) and the explanatory variables (a vector whose columns are the explanatory variables, not including a constant), respectively; y overbar Subscript i dot and bold x overbar Subscript i dot are cross section means; y overbar Subscript dot t and bold x overbar Subscript dot t are time means; and y overbar overbar and bold x overbar overbar are the overall means.

The second step consists of running OLS on the properly de-meaned series, provided that the data are balanced. The unbalanced case is slightly more difficult, because the structure of the missing data must be retained. For this case, PROC TSCSREG uses a slight specialization on Wansbeek and Kapteyn.

The other alternative is to assume that the effects are random. In the one-way case, upper E left-parenthesis nu Subscript i Baseline right-parenthesis equals 0, upper E left-parenthesis nu Subscript i Superscript 2 Baseline right-parenthesis equals sigma Subscript nu Superscript 2, and upper E left-parenthesis nu Subscript i Baseline nu Subscript j Baseline right-parenthesis equals 0 for i not-equals j, and nu Subscript i is uncorrelated with epsilon Subscript i t for all i and t. In the two-way case, in addition to all of the preceding, upper E left-parenthesis e Subscript t Baseline right-parenthesis equals 0, upper E left-parenthesis e Subscript t Superscript 2 Baseline right-parenthesis equals sigma Subscript e Superscript 2, and upper E left-parenthesis e Subscript t Baseline e Subscript s Baseline right-parenthesis equals 0 for t not-equals s, and the e Subscript t are uncorrelated with the nu Subscript i and the epsilon Subscript i t for all iand t. Thus, the model is a variance components model, with the variance components sigma Subscript nu Superscript 2, sigma Subscript e Superscript 2, and sigma Subscript epsilon Superscript 2, to be estimated. A crucial implication of such a specification is that the effects are independent of the regressors. For random-effects models, the estimation method is an estimated generalized least squares (EGLS) procedure that involves estimating the variance components in the first stage and using the estimated variance covariance matrix thus obtained to apply generalized least squares (GLS) to the data.

Last updated: June 19, 2025