R/elas.quadFuncEst.R

Defines functions elas.quadFuncEst

Documented in elas.quadFuncEst

elas.quadFuncEst <- function( object, data = NULL, yObs = FALSE, ... ) {

   if( is.null( data ) ) {
      data <- eval( object$call$data )
   }

   if( yObs ) {
      yName = object$yName
   } else {
      yName <- NULL
   }

   result <- quadFuncEla( xNames = object$xNames,
      data = data, coef = coef( object ), yName = yName,
      shifterNames = object$shifterNames,
      homWeights = object$homWeights )

   return( result )
}

Try the micEcon package in your browser

Any scripts or data that you put into this service are public.

micEcon documentation built on Sept. 4, 2022, 1:06 a.m.