
Read the output file of Tim Coelli's program Frontier 4.1 that performs stochastic frontier analysis.
front41ReadOutput( file = "front41.out" ) # S3 method for front41Output
print( x, efficiencies = FALSE, … )
character variable with the name of the file to read.
object of class front41Output
(returned by front41ReadOutput
.
logical. Print all efficiency estimates?
(If FALSE
, only the mean efficiency is printed.)
currently ignored.
a list of class front41Output
containing following objects:
the version of Frontier 4.1 that produced the output.
name of the instruction file used by Frontier 4.1.
name of the data file used by Frontier 4.1.
model type: either 1 for 'Error Components Frontier' or 2 for 'Tech. Eff. Effects Frontier'.
model type: 'Error Components Frontier' or 'Tech. Eff. Effects Frontier'.
function type: either 1 for 'production function' or 2 for 'cost function'.
function type: 'production function' or 'cost function'.
logical. Is the dependent variable logged.
results of the OLS estimation.
number X variables (exogenous variables of the production or cost function.
log likelihood value of the OLS estimation.
results of the grid search.
results of the maximum likelihood estimation.
log likelihood value of the maximum likelihood estimation.
coefficient covariance matrix of the maximum likelihood estimation.
LR test of the one-sided error.
number of restrictions of the LR test.
number of iterations.
maximum number of iterations set.
number of cross-sections.
umber of time periods.
total number of observations.
number of observations that are not in the panel.
technical efficiency estimates.
mean efficiency.
A modified version of Tim Coelli's FRONTIER 4.1
that can be used non-interactively is available on
http://frontier.r-forge.r-project.org/front41.html.
It can be called from within R using the system
command
(see example).
This version is is available as (FORTRAN) source code
and (executable) binaries for GNU/Linux and MS-Windows.
Battese, G.E. and T. Coelli (1992), Frontier production functions, technical efficiency and panel data: with application to paddy farmers in India. Journal of Productivity Analysis, 3, 153-169.
Battese, G.E. and T. Coelli (1995), A model for technical inefficiency effects in a stochastic frontier production function for panel data. Empirical Economics, 20, 325-332.
Coelli, T. (1996) A Guide to FRONTIER Version 4.1: A Computer Program for Stochastic Frontier Production and Cost Function Estimation, CEPA Working Paper 96/08, http://www.uq.edu.au/economics/cepa/frontier.php, University of New England.
# NOT RUN {
# read the output file that is provided with Frontier 4.1
outFile <- system.file( "front41/EG1.OUT", package = "frontier" )
sfa <- front41ReadOutput( outFile )
print( sfa, efficiencies = TRUE )
# perform an SFA and read the output
data( front41Data )
front41Data$logOutput <- log( front41Data$output )
front41Data$logCapital <- log( front41Data$capital )
front41Data$logLabour <- log( front41Data$labour )
front41WriteInput( front41Data, "firm", yName = "logOutput",
xNames = c( "logCapital", "logLabour" ),
path = tempdir(), insFile = "coelli.ins" )
# }
# NOT RUN {
system( paste0( "cd ", tempdir(), "; front41.bin coelli.ins" ) )
sfa <- front41ReadOutput( file.path( tempdir(), "coelli.out" ) )
summary( sfa )
# }
Run the code above in your browser using DataLab