a vector of strings containing the names of prices.
wNames
a vector of strings containing the names of 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 $\alpha_0$ in the translog price index.
Value
a vector containing the log price index.
Details
Currently 6 different price indices are implemented:
* translog price index ('TL'),
* Stone price index ('S'),
* Stone price index with lagged shares ('SL'),
* loglinear analogue to the Paasche price index ('P'),
* loglinear analogue of the Laspeyres price index ('L'), and
* Tornqvist price index ('T').
The argument base can be either
(a) a single number: the row number of the base prices and quantities,
(b) a vector indicating several observations: The means of these
observations are used as base prices and quantities, or
(c) a logical vector with the same length as the data: The
means of the observations indicated as 'TRUE' are used as base prices
and quantities.
References
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.