Learn R Programming

micEcon (version 0.5-22)

snqProfitEla: Price Elasticities of SNQ Profit function

Description

Calculates the Price Elasticities of a Symmetric Normalized Quadratic (SNQ) profit function.

Usage

snqProfitEla(  beta, prices, quant, weights,
   scalingFactors = rep( 1, length( weights ) ),
   coefVcov = NULL, df = NULL )

Arguments

beta
matrix of estimated $\beta$ coefficients.
prices
vector of netput prices at which the elasticities should be calculated.
quant
vector of netput quantities at which the elasticities should be calculated.
weights
vector of weights of prices used for normalization.
scalingFactors
factors to scale prices (and quantities).
coefVcov
variance covariance matrix of the coefficients (optional).
df
degrees of freedom to calculate P-values of the elasticities (optional).

Value

  • a list of class snqProfitEla containing following elements:
  • elamatrix of the price elasticities.
  • vcovvariance covariance matrix of the price elasticities.
  • stErstandard errors of the price elasticities.
  • tvalt-values of the price elasticities.
  • pvalP-values of the price elasticities.

See Also

snqProfitEst.

Examples

Run this code
# just a stupid simple example
   snqProfitEla( matrix(101:109,3,3), c(1,1,1), c(1,-1,-1), c(0.4,0.3,0.3) )

   # now with real data
   data( germanFarms )
   germanFarms$qOutput   <- germanFarms$vOutput   / germanFarms$pOutput
   germanFarms$qVarInput <- -germanFarms$vVarInput / germanFarms$pVarInput
   germanFarms$qLabor    <- -germanFarms$qLabor
   germanFarms$time      <- c( 0:19 )
   priceNames <- c( "pOutput", "pVarInput", "pLabor" )
   quantNames <- c( "qOutput", "qVarInput", "qLabor" )

   estResult <- snqProfitEst( priceNames, quantNames, c("land","time"), data=germanFarms )

   estResult$ela  # price elasticities at mean prices and mean quantities

   # price elasticities at the last observation (1994/95)
   snqProfitEla( estResult$coef$beta, estResult$data[ 20, priceNames ],
      estResult$data[ 20, quantNames ], estResult$weights,
      estResult$scalingFactors )

Run the code above in your browser using DataLab