writeFront41in            package:micEcon            R Documentation

_W_r_i_t_e _i_n_s_t_r_u_c_t_i_o_n _f_i_l_e _f_o_r _F_r_o_n_t_i_e_r _4._1

_D_e_s_c_r_i_p_t_i_o_n:

     Write an instruction file and a data file for Coelli's program
     Frontier 4.1 that performs stochastic frontier analysis.

_U_s_a_g_e:

        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 ) )

_A_r_g_u_m_e_n_t_s:

    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.

_V_a_l_u_e:

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

_A_u_t_h_o_r(_s):

     Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

_R_e_f_e_r_e_n_c_e_s:

     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, <URL:
     http://www.uq.edu.au/economics/cepa/frontier.htm>, University of
     New England.

_S_e_e _A_l_s_o:

     'readFront41out'

_E_x_a_m_p_l_e_s:

        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)

