The specification for the one-way fixed-effects model is
where the are nonrandom parameters to be estimated.
Let , with and , where is a matrix of ones.
The matrix represents the within transformation. In the one-way model, the within transformation is the conversion of the raw data to deviations from a cross section’s mean. The vector is a row of the general matrix , where the subscripted s implies that the constant (column of ones) is missing.
Let and . The estimator of the slope coefficients is given by
After the slope estimates have been calculated, the estimation of an intercept or the cross-sectional fixed effects is handled as follows. First, you obtain the cross-sectional effects:
If the NOINT option is specified, then the dummy variables’ coefficients are set equal to the fixed effects. If you want an intercept, then the ith dummy variable is obtained from the following expression:
The intercept is the Nth fixed effect .
The within-model sum of squared errors is
The estimated error variance can be written as
Alternatively, an equivalent way to express the error variance is
where the residuals are given by if there is an intercept and by if there is not. The drawback is that the formula changes (but the results do not) with the inclusion of a constant.
The variance covariance matrix of is given by
The covariance of the dummy variables and the dummy variables with the depends on whether the intercept is included in the model. For more information, see the section One-Way Fixed-Effects Model.
Alternatively, the FIXONETIME model option estimates a one-way model in which the heterogeneity comes from time effects. This option is analogous to re-sorting the data by time and then by cross section, and then running a FIXONE model. The advantage of using the FIXONETIME option is that sorting is avoided and the model remains labeled correctly.