Learn R Programming

frontier (version 1.1-8)

elas.frontierQuad: Elasticities of a Quadratic/Translog Frontier

Description

Calculate the elasticities of a quadratic or translog frontier function.

Usage

# S3 method for frontierQuad
elas( object, data = NULL, dataLogged = TRUE,
   yObs = FALSE, … )

Arguments

object

object of class frontierQuad (returned by frontierQuad).

data

dataframe containing the data; if it is not specified, the data frame that was used for the frontier estimation is used for calculating elasticities.

dataLogged

logical. Are the variables (specified in arguments yName and xNames and available in argument data) already logged? (If argument dataLogged is TRUE, the frontier function is of the translog form; if argument dataLogged is FALSE, the frontier function is quadratic).

yObs

logical. Use observed values of the endogenous variable. If FALSE (default) predicted values calculated by quadFuncCalc are used (ignored if argument dataLogged is TRUE).

currently ignored.

Value

See documentation of translogEla and quadFuncEla.

Details

This method internally calls the functions translogEla and quadFuncEla.

See Also

frontierQuad, translogEla, and quadFuncEla.

Examples

Run this code
# NOT RUN {
   # example included in FRONTIER 4.1 (cross-section data)
   data( front41Data )
   front41Data$logOutput  <- log( front41Data$output )
   front41Data$logCapital <- log( front41Data$capital )
   front41Data$logLabour  <- log( front41Data$labour )

   translog <- frontierQuad( yName = "logOutput",
      xNames = c( "logCapital", "logLabour" ),
      data = front41Data )
   elas( translog )
# }

Run the code above in your browser using DataLab