ai: Estimation of an Almost-Ideal Demand System

View source: R/ai_model.R

aiR Documentation

Estimation of an Almost-Ideal Demand System

Description

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

Usage

ai(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

Deaton, Angus S., Muellbauer, John: An Almost Ideal Demand System, The American Economic Review 70(3), American Economic Association, 312-326, 1980

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

See Also

qai and ai.model


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