calc.elas.actual: Calculate actual elasticities using numerical derivatives.

View source: R/food-demand.R

calc.elas.actualR Documentation

Calculate actual elasticities using numerical derivatives.

Description

Given a set of prices and incomes, and model parameters,calculate the elasticities using numerical derivatives. Optionally, you can pass the model results for the base values, if you've already calculated them.

Usage

calc.elas.actual(Ps, Pn, Y, params, basedata = NULL)

Arguments

Ps

Staple food prices

Pn

Nonstaple food prices

Y

Per-capita income

params

Model parameters. See description in food.dmnd.

basedata

Model results for the base values of Ps, Pn, and Y.

Details

The inputs Ps, Pn, and Y can be vectors, but if they are, they must all be the same length

Value

data frame with elasticities


JGCRI/ambrosia documentation built on June 11, 2025, 12:29 a.m.