Learn R Programming

frontier (version 1.1-8)

front41ReadOutput: Read output of Frontier 4.1

Description

Read the output file of Tim Coelli's program Frontier 4.1 that performs stochastic frontier analysis.

Usage

front41ReadOutput( file = "front41.out" )

# S3 method for front41Output print( x, efficiencies = FALSE, … )

Arguments

file

character variable with the name of the file to read.

x

object of class front41Output (returned by front41ReadOutput.

efficiencies

logical. Print all efficiency estimates? (If FALSE, only the mean efficiency is printed.)

currently ignored.

Value

a list of class front41Output containing following objects:

version

the version of Frontier 4.1 that produced the output.

insFile

name of the instruction file used by Frontier 4.1.

dtaFile

name of the data file used by Frontier 4.1.

modelType

model type: either 1 for 'Error Components Frontier' or 2 for 'Tech. Eff. Effects Frontier'.

modelTypeName

model type: 'Error Components Frontier' or 'Tech. Eff. Effects Frontier'.

functionType

function type: either 1 for 'production function' or 2 for 'cost function'.

functionTypeName

function type: 'production function' or 'cost function'.

logDepVar

logical. Is the dependent variable logged.

olsResults

results of the OLS estimation.

nXvars

number X variables (exogenous variables of the production or cost function.

olsLogl

log likelihood value of the OLS estimation.

gridResults

results of the grid search.

mleResults

results of the maximum likelihood estimation.

mleLogl

log likelihood value of the maximum likelihood estimation.

mleCov

coefficient covariance matrix of the maximum likelihood estimation.

lrTest

LR test of the one-sided error.

lrTestRestrict

number of restrictions of the LR test.

nIter

number of iterations.

maxIter

maximum number of iterations set.

nCross

number of cross-sections.

nPeriods

umber of time periods.

nObs

total number of observations.

nObsMissing

number of observations that are not in the panel.

efficiency

technical efficiency estimates.

meanEfficiency

mean efficiency.

Details

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.

References

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.

See Also

front41WriteInput, front41Est

Examples

Run this code
# 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