qai: Estimation of an Quadratic Almost-Ideal Demand System

View source: R/ai_model.R

qaiR Documentation

Estimation of an Quadratic Almost-Ideal Demand System

Description

Estimation of an Quadratic Almost-Ideal Demand System using nlsur().

Usage

qai(w, p, x, z, a0 = 0, data, scale = FALSE, logp = TRUE, logexp = TRUE, ...)

Arguments

w

character vector of m budgetshares used for estimation.

p

character vector of m prices.

x

single character vector of total expenditure.

z

character vector of k demographic variables.

a0

start value for translog price index.

data

data.frame containing the variables.

scale

logical if TRUE Rays (1983) scaling is used.

logp

logical if prices are log prices.

logexp

logical if expenditure is log expenditure.

...

additional options passed to nlsur

References

Banks, James, Blundell, Richard, Lewbel, Arthur: Quadratic Engel Curves and Consumer Demand, The Review of Economics and Statistics 79(4), The MIT Press, 527-539, 1997

Ray, Ranjan: Measuring the costs of children: An alternative approach, Journal of Public Economics 22(1), 89-102, 1983

See Also

ai and ai.model


JanMarvin/nlsur documentation built on June 24, 2024, 2:58 a.m.