qai | R Documentation |
Estimation of an Quadratic Almost-Ideal Demand System using nlsur().
qai(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 |
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
ai and ai.model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.