Learn R Programming

micEcon (version 0.5-6)

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 class '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:
  • versionthe version of Frontier 4.1 that produced the output.
  • insFilename of the instruction file used by Frontier 4.1.
  • dtaFilename of the data file used by Frontier 4.1.
  • modelTypemodel type: either 1 for 'Error Components Frontier' or 2 for 'Tech. Eff. Effects Frontier'.
  • modelTypeNamemodel type: 'Error Components Frontier' or 'Tech. Eff. Effects Frontier'.
  • functionTypefunction type: either 1 for 'production function' or 2 for 'cost function'.
  • functionTypeNamefunction type: 'production function' or 'cost function'.
  • logDepVarlogical. Is the dependent variable logged.
  • olsResultsresults of the OLS estimation.
  • nXvarsnumber X variables (exogenous variables of the production or cost function.
  • olsLogllog likelihood value of the OLS estimation.
  • gridResultsresults of the grid search.
  • mleResultsresults of the maximum likelihood estimation.
  • mleLogllog likelihood value of the maximum likelihood estimation.
  • mleCovcoefficient covariance matrix of the maximum likelihood estimation.
  • lrTestLR test of the one-sided error.
  • lrTestRestrictnumber of restrictions of the LR test.
  • nIternumber of iterations.
  • maxItermaximum number of iterations set.
  • nCrossnumber of cross-sections.
  • nPeriodsumber of time periods.
  • nObstotal number of observations.
  • nObsMissingnumber of observations that are not in the panel.
  • efficiencytechnical efficiency estimates.
  • meanEfficiencymean efficiency.

Details

A modified version of Tim Coelli's FRONTIER 4.1 that can be used non-interactively is available on http://www.uni-kiel.de/agrarpol/ahenningsen/frontier/. 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.htm, University of New England.

See Also

front41WriteInput, front41Est

Examples

Run this code
# read the output file that is provided with Frontier 4.1
   outFile <- system.file( "front41/EG1.OUT", package = "micEcon" )
   sfa <- front41ReadOutput( outFile )
   print( sfa, efficiencies = TRUE )

   # perform an SFA and read the output
   data( Coelli )
   Coelli$logOutput  <- log( Coelli$output )
   Coelli$logCapital <- log( Coelli$capital )
   Coelli$logLabour  <- log( Coelli$labour )

   front41WriteInput( Coelli, "firm", "time", "logOutput",
      c( "logCapital", "logLabour" ), insFile = "coelli.ins" )

   system( "front41.bin coelli.ins" )
   sfa <- front41ReadOutput( "coelli.out" )
   print( sfa )

Run the code above in your browser using DataLab