View source: R/f_multilateral_indicators.R
mmontgomery | R Documentation |
This function returns the multilateral Montgomery price and quantity indicators and optionally also the price and quantity contributions of individual products.
mmontgomery(
data,
start,
end,
wstart = start,
matched = FALSE,
window = 13,
interval = FALSE,
contributions = FALSE,
prec = 2
)
data |
The user's data frame with information about sold products. It must contain columns: |
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". |
wstart |
The first period of the time window (as character) limited to the year and month, e.g. "2019-12". |
matched |
A logical parameter indicating whether the matched sample approach is to be used (if yes, the parameter has the value TRUE). |
window |
The length of the time window (as positive integer: typically multilateral methods are based on the 13-month time window). |
interval |
A logical parameter indicating whether calculations are to be made for the whole time interval (TRUE) or no (FALSE). |
contributions |
A logical parameter indicating whether contributions of individual products are to be displayed. If it is |
prec |
A numeric vector indicating precision, i.e. the number of decimal places for presenting results. |
This function returns the multilateral Montgomery price and quantity indicators and optionally also the price and quantity contributions of individual products.
Montgomery, J. K., (1929). Is There a Theoretically Correct Price Index of a Group of Commodities? Rome, International Institute of Agriculture
Fox, K.J., (2006). A Method for Transitive and Additive Multilateral Comparisons: A Transitive Bennet Indicator. Journal of Economics, 87(1), 73-87.
BiaĆek, J., Pawelec, N. (2024). The use of transitive Montgomery Indicators for scanner data analysis. Argumenta Oeconomica, 2(53).
mmontgomery(milk, "2018-12", "2019-12", matched=TRUE, contributions=TRUE)
mmontgomery(coffee, start="2018-12", end="2019-03", interval=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.