Construct period-over-period price relatives from information on prices and products over time.
Arguments
- x
A numeric vector of prices.
- period
A factor, or something that can be coerced into one, that gives the corresponding time period for each element in
x
. The ordering of time periods follows the levels ofperiod
to agree withcut()
.- product
A factor, or something that can be coerced into one, that gives the corresponding product identifier for each element in
x
.
See also
gpindex::back_period()
to get only the back price.
gpindex::base_period()
for making fixed-base price relatives.
carry_forward()
and shadow_price()
to impute missing prices.
gpindex::outliers
for methods to identify outliers with price relatives.