writeFront41in {micEcon} | R Documentation |
Write an instruction file and a data file for Coelli's program Frontier 4.1 that performs stochastic frontier analysis.
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 ) )
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? |
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 a 'mu' 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. |
writeFront41in writes an instruction file and an data file to disk.
Arne Henningsen ahenningsen@agric-econ.uni-kiel.de
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.
data( Coelli ) Coelli$logOutput <- log( Coelli$output ) Coelli$logCapital <- log( Coelli$capital ) Coelli$logLabour <- log( Coelli$labour ) writeFront41in( Coelli, "firm", "time", "logOutput", c( "logCapital", "logLabour" ) ) ## Not run: system( "wine front41.exe" ) ## End(Not run)