chlloyd_moulton {PriceIndices}R Documentation

Calculating the monthly chained Lloyd-Moulton price index

Description

This function returns a value (or vector of values) of the monthly chained Lloyd-Moulton price index.

Usage

chlloyd_moulton(data, start, end, sigma = 0.7, interval = FALSE)

Arguments

data

The user's data frame with information about sold products. It must contain columns: time (as Date in format: year-month-day,e.g. '2020-12-01'), prices (as positive numeric), quantities (as positive numeric) and prodID (as numeric, factor or character).

start

The base period (as character) limited to the year and month, e.g. "2020-03".

end

The research period (as character) limited to the year and month, e.g. "2020-04".

sigma

The elasticity of substitution parameter (as numeric).

interval

A logical value indicating whether the function is to compare the research period defined by end to the base period defined by start (then interval is set to FALSE) or all fixed base indices are to be calculated. In this latter case, all months from the time interval <start,end> are considered and start defines the base period (interval is set to TRUE).

Value

The function returns a value (or vector of values) of the monthly chained Lloyd-Moulton price index depending on the interval parameter. If the interval parameter is set to TRUE, the function returns a vector of price index values without dates. To get information about both price index values and corresponding dates, please see functions: price_indices or final_index. The function does not take into account aggregating over outlets or product subgroups (to consider these types of aggregating, please use the final_index function).

References

Lloyd, P. J. (1975). Substitution Effects and Biases in Nontrue Price Indices. The American Economic Review, 65, 301-313.

Moulton, B. R. (1996). Constant Elasticity Cost-of-Living Index in Share-Relative Form. Washington DC: U. S. Bureau of Labor Statistics, mimeograph

(2004). Consumer Price Index Manual. Theory and practice. ILO/IMF/OECD/UNECE/Eurostat/The World Bank, International Labour Office (ILO), Geneva.

Von der Lippe, P. (2007). Index Theory and Price Statistics. Peter Lang: Berlin, Germany.

Examples

chlloyd_moulton(sugar, start="2018-12", end="2019-04",sigma=0.9)
chlloyd_moulton(milk, start="2018-12", end="2020-01", interval=TRUE)

[Package PriceIndices version 0.1.9 Index]