Learn R Programming

micEcon (version 0.5-6)

micEcon-deprecated: Deprecated Functions in the micEcon package

Description

These functions are provided for compatibility with older versions of the micEcon package only, and may be defunct as soon as the next release.

Usage

writeFront41in( data, crossSectionName, timePeriodName,
   yName, xNames = NULL, zNames = NULL,
   translog = FALSE, quadHalf = TRUE,
   functionType = 1, modelType = 1, logDepVar = TRUE, mu = FALSE, eta = FALSE,
   insFile = "front41.ins", dtaFile = sub( "\.ins$", ".dta", insFile ),
   outFile = sub( "\.ins$", ".out", insFile ) )

readFront41out( file = "front41.out", translog = FALSE )

Arguments

data
data frame that contains the data.
crossSectionName
string: name of the cross section identifier.
timePeriodName
string: name of the time period identifier.
yName
string: name of the endogenous variable.
xNames
a vector of strings containing the names of the X variables (exogenous variables of the production or cost function).
zNames
a vector of strings containing the names of the Z variables (variables explaining the efficiency level).
translog
logical. Should a translog function be estimated? / Is the estimated function a translog function? (not implemented in readFront41out yet).
quadHalf
logical. Multiply the quadratic terms of the translog function by one half?
functionType
function type: either 1 for 'production function' or 2 for 'cost function'.
modelType
model type: either 1 for 'Error Components Frontier' or 2 for 'Tech. Eff. Effects Frontier'.
logDepVar
logical. Is the dependent variable logged.
mu
logical. Should a 'mu' (if modelType = 1) or a delta0 (if modelType = 2) be included in the estimation.
eta
logical. Should an 'eta' be included in the estimation (only if modelType = 1).
insFile
name of the instruction file.
dtaFile
name of the data file.
outFile
name of the output file.
file
character variable with the name of the file to read.

Value

  • writeFront41in writes an instruction file and an data file to disk.

    readFront41out returns 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.
  • efficiencytechnical efficiency estimates.

Details

writeFront41in is superseded by front41WriteInput and readFront41Out is superseded by front41ReadOutput.

References

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, front41ReadOutput