calc1q: Calculate demand quantities for a single set of inputs

View source: R/food-demand.R

calc1qR Documentation

Calculate demand quantities for a single set of inputs

Description

This is a helper function for the mapply calls in food.dmnd

Usage

calc1q(
  Ps,
  Pn,
  Y,
  eps,
  Ysterm,
  Ynterm,
  Acoef,
  psscl,
  pnscl,
  staples_FE,
  bias_adder_s,
  bias_adder_ns
)

Arguments

Ps

Price of staple foods

Pn

Price of nonstaple foods

Y

Per-capita income

eps

Matrix of Marshall elasticities

Ysterm

Income term in the demand equation for staples

Ynterm

Income term in the demand equation for nonstaples

Acoef

Leading multiplier parameter.

psscl

Scale parameter for staples prices.

pnscl

Scale parameter for non-staple prices.

staples_FE

Fixed effects term for staples. set to 0 by default

bias_adder_s

Bias term for staples. Set to 0 by default

bias_adder_ns

Bias term for non-staples. Set to 0 by default

Value

Quantities of staples and non-staples (Qs and Qn)


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