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.
#' @export


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