util_demand | R Documentation |
This function works as Marshallian demand function when income
is input, and
as Hicksian demand function when utility
is input.
util_demand(f, prices, income = NULL, utility = NULL, gradient = FALSE, ...)
f |
A |
prices |
A numeric vector of prices. |
income |
A scalar numeric of income. If |
utility |
A scalar numeric of utility level. If |
gradient |
Logical input to return the gradient. By default, |
... |
Additional arguments. |
when gradient = FALSE
, a numeric vector of quantities. When
gradient = TRUE
, a numeric matrix of gradients of quantities related to prices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.