FRONTIER Procedure
Example 19.2 Stochastic Frontier Cost Models
This example shows how to estimate the three types of stochastic frontier cost models.
The data for the cost model are provided by Christensen and Greene (1976). The data describe costs and production inputs of 145 US electricity producers in 1955. The model that is estimated follows the nonhomogeneous version of the Cobb-Douglas cost function:
All dollar values are normalized by fuel price. The quadratic log of the output is added to capture nonlinearities due to scale effects in cost functions. Five new variables, log_C_PF, log_PK_PF, log_PL_PF, log_y, and log_y_sq, are created to reflect transformations. The following statements create the data set and transformed variables:
title1 'Estimating a Stochastic Frontier Cost Model';
data electricity;
input Firm Year Cost Output LPrice LShare KPrice KShare FPrice FShare;
datalines;
1 1955 .0820 2.0 2.090 .3164 183.000 .4521 17.9000 .2315
2 1955 .6610 3.0 2.050 .2073 174.000 .6676 35.1000 .1251
3 1955 .9900 4.0 2.050 .2349 171.000 .5799 35.1000 .1852
... more lines ...
/* Data transformations */
data electricity;
set electricity;
label Firm="firm index"
Year="1955 for all observations"
Cost="Total cost"
Output="Total output"
LPrice="Wage rate"
LShare="Cost share for labor"
KPrice="Capital price index"
KShare="Cost share for capital"
FPrice="Fuel price"
FShare"Cost share for fuel";
log_C_PF=log(Cost/FPrice);
log_PK_PF=log(KPrice/FPrice);
log_PL_PF=log(LPrice/FPrice);
log_y=log(Output);
log_y_sq=log_y**2/2;
run;
data mylib.electricity;
set electricity;
run;
The following statements estimate a stochastic frontier exponential cost model that uses the Christensen and Greene (1976) data:
/*-- Stochastic Frontier Cost Model --*/
proc frontier data=mylib.electricity;
model log_C_PF = log_PK_PF log_PL_PF log_y log_y_sq / type=exponential cost;
run;
Output 19.2.1 shows the results.
Output 19.2.1: Exponential Distribution
| Estimating a Stochastic Frontier Cost Model |
| Observation Information | |
|---|---|
| Number of Observations | 159 |
| Number of Missing Observations | 0 |
| Summary Statistics of Dependent Variable | ||||
|---|---|---|---|---|
| Variable | Mean | Standard Error | Minimum | Maximum |
| log_C_PF | -1.38206 | 1.495751 | -5.67619 | 1.728358 |
| Model Fit Summary | |
|---|---|
| Dependent Variable | log_C_PF |
| Data Set | ELECTRICITY |
| Model | Cost |
| Inefficiency Term Distribution | Exponential |
| Log Likelihood | -23.3043 |
| Maximum Absolute Gradient | 0.000105 |
| Number of Iterations | 12 |
| Optimization Method | Newton-Raphson |
| AIC | 60.6086 |
| SBC | 82.09093 |
| Covariance Estimation | Hessian |
| Parameter Estimates | |||||
|---|---|---|---|---|---|
| Parameter | DF | Estimate | Standard Error | t Value | Approx Pr > |t| |
| Intercept | 1 | -4.983210 | 0.543328 | -9.17 | <.0001 |
| log_PK_PF | 1 | 0.090242 | 0.109202 | 0.83 | 0.4086 |
| log_PL_PF | 1 | 0.504299 | 0.118263 | 4.26 | <.0001 |
| log_y | 1 | 0.427182 | 0.066680 | 6.41 | <.0001 |
| log_y_sq | 1 | 0.066120 | 0.010079 | 6.56 | <.0001 |
| _Sigma_v | 1 | 0.154998 | 0.020271 | 7.65 | <.0001 |
| _Sigma_u | 1 | 0.265581 | 0.033614 | 7.90 | <.0001 |
| Variance Statistics | ||
|---|---|---|
| Parameter | Estimate | Standard Error |
| Sigma2 | 0.094558 | 0.015889 |
| Gamma | 0.745929 | 0.083677 |
Similarly, the stochastic frontier cost model can be estimated using the TYPE=HALF or TYPE=TRUNCATED option, which represents half-normal or truncated-normal errors, respectively.
The following statements estimate the half-normal model:
/*-- Stochastic Frontier Cost Model --*/
proc frontier data=mylib.electricity;
model log_C_PF = log_PK_PF log_PL_PF log_y log_y_sq / type=half cost;
run;
Output 19.2.2 shows the result.
Output 19.2.2: Half-Normal Distribution
| Estimating a Stochastic Frontier Cost Model |
| Model Fit Summary | |
|---|---|
| Dependent Variable | log_C_PF |
| Data Set | ELECTRICITY |
| Model | Cost |
| Inefficiency Term Distribution | Half-normal |
| Log Likelihood | -34.953 |
| Maximum Absolute Gradient | 0.000265 |
| Number of Iterations | 12 |
| Optimization Method | Newton-Raphson |
| AIC | 83.90607 |
| SBC | 105.3884 |
| Covariance Estimation | Hessian |
| Parameter Estimates | |||||
|---|---|---|---|---|---|
| Parameter | DF | Estimate | Standard Error | t Value | Approx Pr > |t| |
| Intercept | 1 | -4.434625 | 0.690198 | -6.43 | <.0001 |
| log_PK_PF | 1 | 0.069623 | 0.136250 | 0.51 | 0.6094 |
| log_PL_PF | 1 | 0.474580 | 0.146812 | 3.23 | 0.0012 |
| log_y | 1 | 0.256874 | 0.080777 | 3.18 | 0.0015 |
| log_y_sq | 1 | 0.088051 | 0.011817 | 7.45 | <.0001 |
| _Sigma_v | 1 | 0.207637 | 0.039222 | 5.29 | <.0001 |
| _Sigma_u | 1 | 0.373810 | 0.073605 | 5.08 | <.0001 |
| Variance Statistics | ||
|---|---|---|
| Parameter | Estimate | Standard Error |
| Sigma2 | 0.182847 | 0.042585 |
| Gamma | 0.764212 | 0.132839 |
The following statements estimate the truncated-normal model:
/*-- Stochastic Frontier Cost Model --*/
proc frontier data=mylib.electricity;
model log_C_PF = log_PK_PF log_PL_PF log_y log_y_sq / type=truncated cost;
run;
Output 19.2.3 shows the results.
Output 19.2.3: Truncated-Normal Distribution
| Estimating a Stochastic Frontier Cost Model |
| Model Fit Summary | |
|---|---|
| Dependent Variable | log_C_PF |
| Data Set | ELECTRICITY |
| Model | Cost |
| Inefficiency Term Distribution | Truncated normal |
| Log Likelihood | -36.5435 |
| Maximum Absolute Gradient | 0.007395 |
| Number of Iterations | 18 |
| Optimization Method | Newton-Raphson |
| AIC | 89.0871 |
| SBC | 113.6383 |
| Covariance Estimation | Hessian |
| Parameter Estimates | |||||
|---|---|---|---|---|---|
| Parameter | DF | Estimate | Standard Error | t Value | Approx Pr > |t| |
| Intercept | 1 | -3.904334 | 37.001296 | -0.11 | 0.9160 |
| log_PK_PF | 1 | 0.071737 | 0.143794 | 0.50 | 0.6179 |
| log_PL_PF | 1 | 0.462589 | 0.155598 | 2.97 | 0.0029 |
| log_y | 1 | 0.130496 | 0.058363 | 2.24 | 0.0254 |
| log_y_sq | 1 | 0.103576 | 0.009958 | 10.40 | <.0001 |
| _Sigma_v | 1 | 0.302404 | 0.633030 | 0.48 | 0.6329 |
| _Sigma_u | 1 | 0.035631 | 5.365220 | 0.01 | 0.9947 |
| _Mu | 1 | 0.192831 | 36.995070 | 0.01 | 0.9958 |
| Variance Statistics | ||
|---|---|---|
| Parameter | Estimate | Standard Error |
| Sigma2 | 0.092718 | 0.010408 |
| Gamma | 0.013693 | 4.123680 |