aidsPx( priceIndex, priceNames, data, shareNames = NULL, base = 1, coef = NULL,
shifterNames = NULL )
The argument base
can be either
data
: The
means of the observations indicated as 'TRUE' are used as base prices
and quantities.
prices
and/or shares
that are numeric vectors specifying the values of the base prices
and/or base expenditure shares.
priceIndex
is "P"
, "Ls"
, or "T"
,
the returned vector has the attribute(s)
basePrices
and/or baseShares
that are numeric vectors of the base prices and/or base expenditure shares
for calculating the price indices.
Moschini, G. (1995) Units of Measurement and the Stone Index in Demand System Estimation. American Journal of Agricultural Economics, 77, p. 63-68.
[object Object]
# Stone price index aidsPx( "S", c( "pFood1", "pFood2", "pFood3", "pFood4" ), Blanciforti86, c( "wFood1", "wFood2", "wFood3", "wFood4" ) )
# (log-linear analogue of the) Paasche price index aidsPx( "P", c( "pFood1", "pFood2", "pFood3", "pFood4" ), Blanciforti86, c( "wFood1", "wFood2", "wFood3", "wFood4" ), base = row.names(Blanciforti86) == "1970" )
# Tornqvist price index aidsPx( "T", c( "pFood1", "pFood2", "pFood3", "pFood4" ), Blanciforti86, c( "wFood1", "wFood2", "wFood3", "wFood4" ), base = list( prices = rep( 100, 4 ), shares = rep( 0.25, 4 ) ) )