You perform two-way random-effects estimation by specifying the RANTWO option in the MODEL statement (or by specifying nothing, because RANTWO is the default). The specification for the two-way random-effects model is
where the are iid with zero mean and variance
, the
are iid with zero mean and variance
, and the
are iid with zero mean and variance
. Furthermore, a random-effects specification assumes that the error terms are mutually uncorrelated and that each error term is uncorrelated with
.
Estimation proceeds in two steps. First, you obtain estimates of the variance components ,
, and
. The PANEL procedure provides four methods of estimating variance components; these methods are described in the following subsections.
Second, with the variance-component estimates in hand, you transform the data in such a way that estimation can take place using ordinary least squares (OLS). In two-way models with unbalanced data, the transformation is quite complex. Throughout this section, and
are treated as being sorted first by time, and then by cross section within time. For the definitions of the design matrices
and
, see the section Two-Way Fixed-Effects Model (FIXTWO Option). The variance of
is
and estimation proceeds as OLS regression of on
.
Rather than invert the matrix
directly, Wansbeek and Kapteyn (1989) provide the more convenient form
where
If the data are balanced, then the calculations are simplified considerably—the data are transformed from to
, where
The PANEL procedure provides four methods of estimating variance components, as described in the following subsections.
You can use the Wallace-Hussain (1969) method of estimating variance components by specifying the VCOMP=WH option in the MODEL statement. The Wallace-Hussain method is part of a class of methods known as analysis of variance (ANOVA) estimators.
ANOVA estimators obtain variance components by solving a system of equations that is based on expected sums of squares. The following quadratic forms correspond to the two-way within sum of squares, the sum of squares between time periods, and the sum of squares between cross sections, respectively:
The matrix is the two-way within transformation defined in the section Two-Way Fixed-Effects Model (FIXTWO Option),
,
, and
is the vector of true residuals.
The ANOVA methods differ only in how they estimate . The Wallace-Hussain method is an ANOVA method that uses the residuals from pooled (OLS) regression,
, in all three quadratic forms.
The expected values of the quadratic forms are
Define , which is the inverse crossproducts matrix from pooled regression. Also define
and
, which are the individual-level sum of squares and the time-level sum of squares, respectively. The coefficients are
You can use the Wansbeek-Kapteyn method of estimating variance components by specifying the VCOMP=WK option in the MODEL statement. The method is a specialization (Baltagi and Chang 1994) of the approach used by Wansbeek and Kapteyn (1989) for unbalanced two-way models.
The Wansbeek-Kapteyn method is an ANOVA method that uses the within residuals from two-way fixed effects, , in all three quadratic forms.
The expected values of the quadratic forms are
where and
. The other constants are defined by
When the NOINT option is specified, the variance-component equations change slightly: ,
, and
are all replaced by 0.
The Wansbeek-Kapteyn method is the default method when the data are unbalanced.
You can use the Fuller-Battese (1974) method of estimating variance components by specifying the VCOMP=FB option in the MODEL statement. Following the discussion in Baltagi, Song, and Jung (2002), the Fuller-Battese method is a variation of the two ANOVA methods discussed previously in this section.
The quadratic form, , is the same as in the previous methods, and
is estimated by the two-way within residuals
. The other two quadratic forms,
and
, are replaced by the error sums of squares from one-way fixed-effects estimations.
The resulting system of equations is
where ,
,
are the residuals from a one-way model with time fixed effects, and
are the residuals from a one-way model with individual fixed effects.
The Fuller-Battese method is the default method when the data are balanced.
You can use the Nerlove (1971) method of estimating variance components by specifying the VCOMP=NL option in the MODEL statement.
You begin by fitting a two-way fixed-effects model. The estimator of the error variance is
You obtain as the sample variance of the N estimated individual effects, and
as the sample variance of the T estimated time effects.