Title: | General Analysis of Various Economics Demand Systems |
---|---|
Description: | Tools for general properties including price, quantity, elasticity, convexity, marginal revenue and manifold of various economics demand systems including Linear, Translog, CES, LES and CREMR. |
Authors: | Tianhao Wu [aut, cre] |
Maintainer: | Tianhao Wu <[email protected]> |
License: | GNU General Public License version 2 |
Version: | 1.0 |
Built: | 2025-02-21 05:29:45 UTC |
Source: | https://github.com/cran/EconDemand |
Finds the prices and returns general propeties when quantities are given of various economics demand systems including Linear, Translog, CES, LES and CREMR.
DemandPrice(q, parameter, method, Plot, message)
DemandPrice(q, parameter, method, Plot, message)
q |
the quantity vector |
parameter |
the parameters of the economics demand system. When choosing CREMR demand, it should be three dimensional, otherwise it should be two dimensional. |
method |
the demand function used, can be one of Linear, Translog, CES, LES and CREMR |
Plot |
a logical value indicating whether the manifold should be plotted |
message |
a logical value indicating whether an important message about the computed quantity should be printed |
price |
the computed price |
sales |
the total sales (revenues) |
elasticity |
the elasticity of demand |
convexity |
the convexity of demand |
marginal.revenue |
the marginal revenues |
#Set quantity vector quantity<-c(1,1.1,1.2) #Use Translog Demand Function X<-DemandPrice(quantity, c(10,0.5), "Translog", Plot=TRUE, message=TRUE) #Return the prices X$price #Return the demand elasticity X$elasticity
#Set quantity vector quantity<-c(1,1.1,1.2) #Use Translog Demand Function X<-DemandPrice(quantity, c(10,0.5), "Translog", Plot=TRUE, message=TRUE) #Return the prices X$price #Return the demand elasticity X$elasticity
Finds the quantities (outputs) and returns general propeties when prices are given of various economics demand systems including Linear, Translog, CES, LES and CREMR.
DemandQuantity(p, parameter, method, Plot, message)
DemandQuantity(p, parameter, method, Plot, message)
p |
the price vector |
parameter |
the parameters of the economics demand system. When choosing CREMR demand, it should be three dimensional, otherwise it should be two dimensional. |
method |
the demand function used, can be one of Linear, Translog, CES, LES and CREMR |
Plot |
a logical value indicating whether the manifold should be plotted |
message |
a logical value indicating whether an important message about the computed quantity should be printed |
quantity |
the computed quantity |
sales |
the total sales (revenues) |
elasticity |
the elasticity of demand |
convexity |
the convexity of demand |
marginal.revenue |
the marginal revenues |
#Set price vector price<-c(1,1.1,1.2) #Use Linear Demand Function X<-DemandQuantity(price,c(10,0.5), "Linear", Plot=TRUE, message=TRUE) #Return the quantities X$quantity #Return the marginal revenues X$marginal.revenue
#Set price vector price<-c(1,1.1,1.2) #Use Linear Demand Function X<-DemandQuantity(price,c(10,0.5), "Linear", Plot=TRUE, message=TRUE) #Return the quantities X$quantity #Return the marginal revenues X$marginal.revenue