aidsPx {micEcon} | R Documentation |
Calculate log price indices for the AIDS and LA-AIDS.
aidsPx( px, priceNames, shareNames = NULL, data = NULL, base = 1, coef = NULL, alpha0 = ifelse( is.null( coef$alpha0 ), 0, coef$alpha0 ) )
px |
the price index to be used (see details). |
priceNames |
a vector of strings containing the names of the prices. |
shareNames |
a vector of strings containing the names of the expenditure shares. |
data |
a data frame containing the data. |
base |
the base to calculate the indices (see details). |
coef |
a list containing the coefficients alpha, beta and gamma (only needed for the translog price index). |
alpha0 |
coefficient α_0 of the translog price index. |
Currently 6 different price indices are implemented: begin{itemize}
The argument base
can be either
begin{itemize}
data
: The
means of the observations indicated as 'TRUE' are used as base prices
and quantities.
end{itemize}
a vector containing the log price index.
Arne Henningsen ahenningsen@agric-econ.uni-kiel.de
Deaton, A.S. and J. Muellbauer (1980) An Almost Ideal Demand System. American Economic Review, 70, p. 312-326.
Moschini, G. (1995) Units of Measurement and the Stone Index in Demand System Estimation. American Journal of Agricultural Economics, 77, p. 63-68.
data( Blanciforti86 ) aidsPx( "S", c( "pFood1", "pFood2", "pFood3", "pFood4" ), c( "wFood1", "wFood2", "wFood3", "wFood4" ), Blanciforti86 )