NOTE: this function is still under development and incomplete!
translogCostEst( cName, yName, pNames, data, fNames = NULL,
shifterNames = NULL, dataLogged = FALSE, homPrice = TRUE, ...)
plm.data
).data
already logged?translogCostEst
containing following objects:lm
or plm
.xNames
.shifterNames
.cName
.yName
.pNames
.fNames
.shifterNames
.dataLogged
.homPrice
.translogEst
and quadFuncEst
.data( germanFarms )
# output quantity:
germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput
# value of labor input
germanFarms$vLabor <- germanFarms$pLabor + germanFarms$qLabor
# total variable cost
germanFarms$cost <- germanFarms$vLabor + germanFarms$vVarInput
# a time trend to account for technical progress:
germanFarms$time <- c(1:20)
# estimate a translog cost function
estResult <- translogCostEst( cName = "cost", yName = "qOutput",
pNames = c( "pLabor", "pVarInput" ), fNames = "land",
shifterNames = "time", data = germanFarms, homPrice = FALSE )
summary( estResult$est )
Run the code above in your browser using DataLab