util_2goods_utility | R Documentation |
util_2goods_utility(f, quantity, gradient = FALSE)
f |
A |
quantity |
A scalar numeric of quantity. |
gradient |
Logical input to return the gradient. By default, |
A function that takes a scalar numeric of quantity of good X and
returns a scalar numeric of total utility (gradient = TRUE
) or marginal
utility (gradient = FALSE
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.