The PANEL Procedure
Getting Started: PANEL Procedure
(View the complete code for this example.)
The following example uses cost function data from Greene (1990) to estimate a variance components model. The variable Production is the log of output in millions of kilowatt-hours, and Cost is the log of cost in millions of dollars. For more information, see Greene (1990).
data greene;
input firm year production cost @@;
datalines;
1 1955 5.36598 1.14867 1 1960 6.03787 1.45185
1 1965 6.37673 1.52257 1 1970 6.93245 1.76627
2 1955 6.54535 1.35041 2 1960 6.69827 1.71109
2 1965 7.40245 2.09519 2 1970 7.82644 2.39480
3 1955 8.07153 2.94628 3 1960 8.47679 3.25967
3 1965 8.66923 3.47952 3 1970 9.13508 3.71795
4 1955 8.64259 3.56187 4 1960 8.93748 3.93400
... more lines ...
Suppose you decide to fit the following model to the data:
where and represent the cost and production, and , and are the cross-sectional, time series, and error variance components.
If you assume that the time and cross-sectional effects are random, you are left with four possible estimators for the variance components. You choose Fuller-Battese.
The following statements fit this model:
proc sort data=greene;
by firm year;
run;
proc panel data=greene;
model cost = production / rantwo vcomp = fb;
id firm year;
run;
The PANEL procedure output is shown in Figure 26.1. A model description is printed first, which reports the estimation method used and the number of cross sections and time periods. Fit statistics and variance components estimates are printed next. A Hausman specification test compares this model to its fixed-effects analog. Finally, the table of regression parameter estimates shows the estimates, standard errors, and t tests.
Figure 26.1: The Variance Components Estimates
Copyright © SAS Institute Inc. All rights reserved.