Description Usage Arguments Value Author(s) See Also Examples
Calculate the partial derivatives of a translog ray function
with respect to the independent and the dependent variables.
Please note that translogRayDeriv does not return
the partial derivatives of the ‘distance’ (||y||)
but of the function F(y,x)= Q( \log x, theta ) - \log ||y|| = 0,
where Q(.) denotes a quadratic function.
| 1 2 | translogRayDeriv( yNames, xNames, data, coef,
   dataLogged = FALSE )
 | 
| yNames | a single character string or a vector of character strings containing the name(s) of the output quantity. | 
| xNames | a vector of strings containing the names of the input quantities. | 
| data | dataframe containing the data. | 
| coef | vector containing all coefficients:
if there are  | 
| dataLogged | logical. Are the values in  | 
A data frame containing the partial derivatives of the function F(y,x) (see above) with respect to x and y.
Arne Henningsen and Geraldine Henningsen
translogRayEst, translogDeriv.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |    data( germanFarms, package = "micEcon" )
   # quantity of crop outputs:
   germanFarms$qCrop <- germanFarms$vCrop / germanFarms$pOutput
   # quantity of animal outputs:
   germanFarms$qAnimal <- germanFarms$vAnimal / germanFarms$pOutput
   # quantity of variable inputs
   germanFarms$qVarInput <- germanFarms$vVarInput / germanFarms$pVarInput
   # estimate a translog ray production function
   estResult <- translogRayEst( yNames = c( "qCrop", "qAnimal" ),
      xNames = c( "qLabor", "land", "qVarInput" ),
      data = germanFarms )
   # compute the partial derivatives
   deriv <- translogRayDeriv( yNames = c( "qCrop", "qAnimal" ),
      xNames = c( "qLabor", "land", "qVarInput" ),
      data = germanFarms, coef = coef( estResult ) )
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.