util_expenditure | R Documentation |
Expenditure function
util_expenditure(f, prices, utility, gradient = FALSE, ...)
f |
A |
prices |
A numeric vector of prices. |
utility |
A scalar numeric of utility level. |
gradient |
Logical input to return the gradient. By default, |
... |
Additional arguments. |
When gradient = FALSE
, a scalar numeric of expenditure. When
gradient = TRUE
, a numeric vector of gradients of expenditure related to
prices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.