R/maxRev_forElas.R

Defines functions priceOf_maxRev_forElas

Documented in priceOf_maxRev_forElas

#' Compute maximum revenue given constant input elasticity
#' @param e A vector of lenght 2 defining elasticity, where the first element is slope and second element is intercept. Make sure you keep this order in the supplied vector. 
#' @return Maximum achievable revenue for given elasticity coefficient and intercept.
#' @author Alexander Kheirallah ([email protected])
#' @export


priceOf_maxRev_forElas = function(f){
  return(
    -f[2]/(2*f[1])
  )
}
msxakk89/dat documentation built on March 25, 2020, 3:18 p.m.