Description Usage Arguments Value Author(s) See Also Examples
View source: R/translogProdFuncMargCost.R
Calculate the marginal costs of the output from a translog production function.
1 2 | translogProdFuncMargCost( yName, xNames, wNames, data, coef,
dataLogged = FALSE )
|
yName |
a single character string containing the name of the output quantity. |
xNames |
a vector of strings containing the names of the input quantities. |
wNames |
a vector of strings containing the names of the input prices. |
data |
dataframe containing the data. |
coef |
vector containing all coefficients:
if there are |
dataLogged |
logical. Are the values in |
A vector containing the marginal costs of producing the output.
Arne Henningsen and Geraldine Henningsen
translogEst
, translogCalc
,
translogDeriv
, translogEla
and
translogCostEst
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | data( germanFarms )
# output quantity:
germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput
# quantity of variable inputs
germanFarms$qVarInput <- germanFarms$vVarInput / germanFarms$pVarInput
# a time trend to account for technical progress:
germanFarms$time <- c(1:20)
# generate (artificial) prices
germanFarms$pLand <- 200 + 15 * germanFarms$time
germanFarms$pTime <- 1
# estimate a single-output translog production function
estResult <- translogEst( "qOutput", c( "qLabor", "land", "qVarInput", "time" ),
germanFarms )
# compute the marginal costs of producing the output
margCost <- translogProdFuncMargCost( yName = "qOutput",
xNames = c( "qLabor", "land", "qVarInput", "time" ),
wNames = c( "pLabor", "pLand", "pVarInput", "pTime" ),
data = germanFarms, coef = coef( estResult ) )
|
If you have questions, suggestions, or comments regarding one of the 'micEcon' packages, please use a forum or 'tracker' at micEcon's R-Forge site:
https://r-forge.r-project.org/projects/micecon/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.