ai | R Documentation |
Estimation of an Almost-Ideal Demand System using nlsur().
ai(w, p, x, z, a0 = 0, data, scale = FALSE, logp = TRUE, logexp = TRUE, ...)
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 |
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
qai and ai.model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.