util_2goods_indifference: Indifference curve function factory for two goods

View source: R/util-2goods.R

util_2goods_indifferenceR Documentation

Indifference curve function factory for two goods

Description

[Experimental]

Usage

util_2goods_indifference(
  f,
  utility,
  otherwise = NA_real_,
  interval = c(1e-06, 1e+06),
  tol = 1e-06,
  ...
)

Arguments

f

A econ_util object.

utility

A scalar numeric of utility.

otherwise

Default value when the root is not found. By default, NA_real.

interval

Passed to stats::uniroot().

tol

Passed to stats::uniroot().

...

Passed to stats::uniroot().

Value

A function that takes a scalar numeric of quantity of good X and returns a scalar numeric of quantity of good Y.


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