util_demand_marshallian: Marshallian demand function

View source: R/util.R

util_demand_marshallianR Documentation

Marshallian demand function

Description

Marshallian demand function

Usage

util_demand_marshallian(f, prices, income, gradient = FALSE, ...)

Arguments

f

A econ_util object.

prices

A numeric vector of prices.

income

A scalar numeric of income.

gradient

Logical input to return the gradient. By default, FALSE.

...

Additional arguments.

Value

when gradient = FALSE, a numeric vector of quantities. When gradient = TRUE, a numeric matrix of gradients of quantities related to prices.


UchidaMizuki/econgoods documentation built on Oct. 23, 2024, 8:10 a.m.