front41WriteInput( data, crossSectionName, timePeriodName = NULL,
yName, xNames = NULL, qxNames = NULL, zNames = NULL, quadHalf = TRUE,
functionType = 1, logDepVar = TRUE, mu = FALSE, eta = FALSE,
insFile = "front41.ins", dtaFile = sub( "\.ins$", ".dta", insFile ),
outFile = sub( "\.ins$", ".out", insFile ), startUpFile = "front41.000",
iprint = 5, indic = 1, tol = 0.00001, tol2 = 0.001, bignum = 1.0E+16,
step1 = 0.00001, igrid2 = 1, gridno = 0.1, maxit = 100, ite = 1 )
NULL
in case of cross-section data."all"
for using all variables specified in argument xNames
iprint
iterations;
if this argument is 0, do not print.front41WriteInput
writes an instruction file, a data file,
and a start-up file for Frontier 4.1 to disk
and it invisibly returns a list of class front41WriteInput
.
This list contains mainly the arguments with which front41WriteInput
was called.
An exception is element data
, which is not
the argument data
but the data matrix
that was written into the data file.
Furthermore, in case of an Efficiency Effects Model,
the element eta
contains the number of Z variables.
Additionally, the returned list contains following elements: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 (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,
front41ReadOutput
, front41Est
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" )
Run the code above in your browser using DataLab