HPPANEL Procedure

Getting Started: HPPANEL Procedure

(View the complete code for this example.)

The following statements use the cost function data from Greene (1990) to estimate the variance components model. The variable Production is the log of output in millions of kilowatt-hours, and the variable 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

   ... more lines ...   

You decide to fit the following model to the data,

upper C Subscript i t Baseline equals normal upper I normal n normal t normal e normal r normal c normal e normal p normal t plus bold-italic beta upper P Subscript i t Baseline plus v Subscript i Baseline plus e Subscript t Baseline plus epsilon Subscript i t Baseline for i equals 1 comma ellipsis comma upper N and t equals 1 comma ellipsis comma upper T

where upper C Subscript i t and upper P Subscript i t represent the cost and production; and v Subscript i, e Subscript t, and epsilon Subscript i t are the cross-sectional, time series, and error variance components, respectively.

If you assume that the time and cross-sectional effects are random, four possible estimators are left for the variance components. The following statements choose the Fuller-Battese method to fit this model:

proc hppanel data=greene;
   model cost = production / rantwo vcomp = fb;
   id firm year;
   performance nthreads=2;
run;

The output of the HPPANEL procedure is shown in Figure 1.

Figure 1: Two-Way Random Effects Results

The HPPANEL Procedure

Model Information
Data SourceGREENE
Response Variablecost
ModelRANTWO
Variance ComponentFULLER

Fit Statistics
Sum of Squared Error0.348082
Degrees of Freedom22
Mean Squared Error0.015822
Root Mean Squared Error0.125785
R-Square0.813624

Variance Component Estimates
Variance Component for Cross Sections0.0469
Variance Component for Time Series0.00906
Variance Component for Error0.00875

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValuePr > |t|
Intercept1-2.999920.64778-4.63<.0001
production10.746600.076189.80<.0001


Printed first is the model description, which reports the method used for estimation and the method used for estimating error components. Printed next is the fit statistics table, and then the variance components estimates. Finally, the table of regression parameter estimates shows the estimates, standard errors, and t tests.

Last updated: June 19, 2025